Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmarty authored Jul 2, 2024
1 parent 1d87775 commit 01fd84c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,33 @@ name: CI
on:
push:
branches: [main]
paths:
- "**.go"
- go.sum
- go.mod
- .github/workflows/ci.yml
pull_request:
branches: [main]
paths:
- "**.go"
- go.sum
- go.mod
- .github/workflows/ci.yml

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Get Go version
id: version
run: awk '{if($1 == "go") print "version=" $2}' go.mod >> "$GITHUB_OUTPUT"

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: ${{steps.version.outputs.version}}

- name: Build
run: go build -v ./...
Expand Down

0 comments on commit 01fd84c

Please sign in to comment.