Skip to content

Commit

Permalink
Merge branch 'master' into moul-patch-5
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Sep 21, 2023
2 parents 5ee47a8 + 1ccf42d commit d8872d3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
goversion: "1.21.x"
go-version: "1.21.x"
- name: "gobenchdata publish: ${{ inputs.publish }}"
run: go run go.bobheadxi.dev/gobenchdata@v1 action
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/db-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ jobs:
- fsdb
- boltdb
steps:
- uses: actions/checkout@v4

# golang
- uses: actions/setup-go@v4
with:
goversion: ${{ matrix.goversion }}
go-version: ${{ matrix.goversion }}

# leveldb
- name: install leveldb
Expand All @@ -46,6 +48,5 @@ jobs:
sudo dpkg -i *.deb
# test ./pkgs/db
- uses: actions/checkout@v4
- name: test ./tm2/pkg/db
run: go test -tags ${{ matrix.tags }} ./tm2/pkg/db/...
12 changes: 6 additions & 6 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
goversion: ${{ matrix.goversion }}
- uses: actions/checkout@v4
go-version: ${{ matrix.goversion }}
- run: go install -v ./gnovm/cmd/gno
- run: go run ./gnovm/cmd/gno precompile --verbose ./examples
- run: go run ./gnovm/cmd/gno build --verbose ./examples
Expand All @@ -45,10 +45,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
goversion: ${{ matrix.goversion }}
- uses: actions/checkout@v4
go-version: ${{ matrix.goversion }}
- run: go install -v ./gnovm/cmd/gno
- run: go run ./gnovm/cmd/gno test --verbose ./examples
lint:
Expand All @@ -62,10 +62,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
goversion: ${{ matrix.goversion }}
- uses: actions/checkout@v4
go-version: ${{ matrix.goversion }}
- run: go install -v ./gnovm/cmd/gno
# testing official directories, basically examples/ minus examples/.../x/.
- run: go run ./gnovm/cmd/gno lint --verbose ./examples/gno.land/p
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
goversion: 1.21.x

- name: Checkout code
uses: actions/checkout@v4
go-version: 1.21.x

- name: Lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -31,17 +31,17 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
goversion: 1.20.x
go-version: 1.21.x

- name: Install make
run: sudo apt-get install -y make

- name: Checkout code
uses: actions/checkout@v4

# prefill dependencies so that mod messages don't show up in make output
- name: Fetch dependencies
run: go mod download -modfile ./misc/devdeps/go.mod -x
Expand All @@ -61,13 +61,13 @@ jobs:
modtidy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v4
with:
goversion: 1.20.x

- name: Checkout code
uses: actions/checkout@v4
go-version: 1.21.x

- name: Check go.mods
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tm2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
export GOPATH=$HOME/go
export GOTEST_FLAGS="-v -p 1 -timeout=30m -coverprofile=coverage.out -covermode=atomic"
make ${{ matrix.args }}
touch coverage.out
- if: ${{ runner.os == 'Linux' && matrix.goversion == '1.21.x' }}
uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 0 additions & 1 deletion tm2/pkg/tmp.go

This file was deleted.

0 comments on commit d8872d3

Please sign in to comment.