Skip to content

Commit

Permalink
build: setup go: checkout code before installing go
Browse files Browse the repository at this point in the history
  • Loading branch information
nlowe committed Dec 2, 2022
1 parent d1f5030 commit 4b76089
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
matrix:
go: [1.19]
steps:
- name: Checkout
uses: actions/checkout@master

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true

- name: Checkout
uses: actions/checkout@master

- name: Run Tests
run: go test -v -cover -covermode=count -coverprofile=coverage.out ./...

Expand All @@ -33,14 +33,14 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Get Sources
uses: actions/checkout@master

- name: Setup
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Get Sources
uses: actions/checkout@master

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down

0 comments on commit 4b76089

Please sign in to comment.