Skip to content

Commit

Permalink
ci: run checkout first so go caching works
Browse files Browse the repository at this point in the history
  • Loading branch information
tchajed committed Jan 12, 2024
1 parent ded80e6 commit 5be7d05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ jobs:
name: Verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dafny
uses: dafny-lang/[email protected]
with:
dafny-version: ${{ env.dafny }}
- uses: actions/checkout@v4
- name: Verify
run: make -j2 verify
test-support:
name: Test dafny_go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.go }}
- uses: actions/checkout@v4
- name: Test support library
run: |
go test -v -timeout=1m ./dafny_go/... ./eval
Expand All @@ -41,14 +41,14 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install Dafny
uses: dafny-lang/[email protected]
with:
dafny-version: ${{ env.dafny }}
- uses: actions/setup-go@v5
with:
go-version: ${{ env.go }}
- uses: actions/checkout@v4
- name: Install goimports
run: |
go install golang.org/x/tools/cmd/goimports@latest
Expand All @@ -74,14 +74,14 @@ jobs:
runs-on: macos-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install Dafny
uses: dafny-lang/[email protected]
with:
dafny-version: ${{ env.dafny }}
- uses: actions/setup-go@v5
with:
go-version: ${{ env.go }}
- uses: actions/checkout@v4
- name: Install goimports
run: |
go install golang.org/x/tools/cmd/goimports@latest
Expand Down

0 comments on commit 5be7d05

Please sign in to comment.