Skip to content

Commit

Permalink
Bump Oasis Core to 23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Oct 16, 2023
1 parent a895d38 commit 1a8076d
Show file tree
Hide file tree
Showing 79 changed files with 3,478 additions and 2,915 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
go-version: "1.21.x"

# Generate go.sum needed for linting.
- name: Generate go.sum
Expand All @@ -106,7 +106,7 @@ jobs:
uses: golangci/[email protected]
with:
# NOTE: The version must be specified without the patch version.
version: v1.51.2
version: v1.54.2
working-directory: examples/${{ matrix.example }}

- name: Build ${{ matrix.example }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
go-version: "1.21.x"

- name: Lint Go client-sdk
uses: golangci/[email protected]
with:
# NOTE: The version must be specified without the patch version.
version: v1.51.2
version: v1.54.2
working-directory: client-sdk/go

lint-go-tests-e2e:
Expand Down Expand Up @@ -97,13 +97,13 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20.x"
go-version: "1.21.x"

- name: Lint E2E tests
uses: golangci/[email protected]
with:
# NOTE: The version must be specified without the patch version.
version: v1.51.2
version: v1.54.2
working-directory: tests/e2e

lint-go-reflect:
Expand All @@ -116,13 +116,13 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'
go-version: "1.21.x"

- name: Lint reflect-go
uses: golangci/[email protected]
with:
# NOTE: The version must be specified without the patch version.
version: v1.51.2
version: v1.54.2
working-directory: client-sdk/ts-web/core/reflect-go

lint-ts-web:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-longtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Set up Rust
run: rustup show

- name: Set up Go 1.20
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20.x"
go-version: "1.21.x"

- name: Install Oasis dependencies
run: |
Expand Down
26 changes: 21 additions & 5 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20.x"
go-version: "1.21.x"

- name: Unit tests with coverage
working-directory: client-sdk/go
Expand All @@ -116,7 +116,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20.x"
go-version: "1.21.x"

- name: Test build orc
working-directory: tools/orc
Expand Down Expand Up @@ -250,6 +250,14 @@ jobs:
name: e2e-ts-web-core-screenshots
path: client-sdk/ts-web/core/cypress/screenshots

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: e2e-ts-web-core-logs
path: |
/tmp/oasis-net-runner-sdk-core/**/*.log
e2e-ts-web-ext-utils:
# NOTE: This name appears in GitHub's Checks API.
name: e2e-ts-web-ext-utils
Expand Down Expand Up @@ -377,7 +385,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20.x"
go-version: "1.21.x"

- name: Install Oasis dependencies
run: |
Expand All @@ -393,6 +401,14 @@ jobs:
- name: Run end-to-end tests
run: ./tests/run-e2e.sh

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: e2e-rt-logs
path: |
/tmp/oasis-test-runner*/**/*.log
jest-ts-web-core:
name: jest-ts-web-core
runs-on: ubuntu-latest
Expand Down Expand Up @@ -448,7 +464,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20.x"
go-version: "1.21.x"

- name: Generate
working-directory: client-sdk/ts-web/core/reflect-go
Expand Down Expand Up @@ -479,7 +495,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20.x"
go-version: "1.21.x"

- name: Install Oasis dependencies
run: |
Expand Down
23 changes: 22 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ linters:
- nakedret
- nestif
- noctx
- nolintlint
- prealloc
- rowserrcheck
- staticcheck
Expand All @@ -56,3 +55,25 @@ linters-settings:
govet:
# Enabled checking for shadowed variables.
check-shadowing: true
goimports:
# Put local imports after 3rd-party packages.
local-prefixes: github.com/oasisprotocol/
gosec:
excludes:
# https://github.com/securego/gosec#available-rules
- G402
- G404
depguard:
rules:
main:
files:
- $all
allow:
- $gostd
- github.com/oasisprotocol
- github.com/btcsuite/btcd/btcec
- google.golang.org/grpc
- github.com/ethereum/go-ethereum
- github.com/shopspring/decimal
- github.com/golang/snappy
- github.com/stretchr/testify
Loading

0 comments on commit 1a8076d

Please sign in to comment.