Skip to content

Commit

Permalink
build: update PR template and CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gbotrel committed Aug 22, 2023
1 parent b8aebea commit 8099397
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Description

<!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Note that in most cases the PR should be against the `develop` branch. -->
<!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. -->

Fixes # (issue)

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x
- name: checkout code
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.20.x]
go-version: [1.21.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
needs:
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
go test -v -short -tags=solccheck -timeout=30m ./...
- name: Test race
run: |
go test -v -short -race -timeout=30m
go test -v -short -race -timeout=50m
slack-workflow-status-failed:
if: failure()
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: install Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
go-version: 1.21.x
- name: checkout code
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.20.x]
go-version: [1.21.x]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
needs:
Expand All @@ -76,15 +76,22 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: install deps
run: go install golang.org/x/tools/cmd/goimports@latest && go install github.com/klauspost/asmfmt/cmd/asmfmt@latest
run: |
go install golang.org/x/tools/cmd/goimports@latest && go install github.com/klauspost/asmfmt/cmd/asmfmt@latest
go install github.com/ethereum/go-ethereum/cmd/[email protected]
go install github.com/consensys/gnark-solidity-checker@latest
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc
- name: Test
run: |
go test -v -timeout=30m ./...
go test -v -tags=solccheck -timeout=60m ./...
- name: Test (race)
if: matrix.os == 'ubuntu-latest'
run: |
go test -v -timeout=50m -race -short ./...
go test -v -timeout=60m -race -short ./...
slack-workflow-status-failed:
if: failure()
Expand Down

0 comments on commit 8099397

Please sign in to comment.