runtime-sdk/modules/evm: Drop signed queries in new contracts #8602
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge. | |
name: ci-lint | |
# Trigger the workflow when: | |
on: | |
# A push occurs to one of the matched branches. | |
push: | |
branches: | |
- main | |
- stable/* | |
# Or when a pull request event occurs for a pull request against one of the | |
# matched branches. | |
pull_request: | |
branches: | |
- main | |
- stable/* | |
# Cancel in-progress jobs on same branch. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint-rust: | |
name: lint-rust | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Rust | |
run: rustup show | |
- name: Lint Rust code | |
uses: ./.github/actions/lint-rust | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lint Hello contract code | |
uses: ./.github/actions/lint-rust | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
manifest_path: tests/contracts/hello/Cargo.toml | |
- name: Lint OAS-20 contract code | |
uses: ./.github/actions/lint-rust | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
manifest_path: contract-sdk/specs/token/oas20/Cargo.toml | |
lint-go-client-sdk: | |
name: lint-go-client-sdk | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.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 | |
working-directory: client-sdk/go | |
lint-go-tests-e2e: | |
name: lint-go-tests-e2e | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install libseccomp-dev | |
run: | | |
sudo apt-get update | |
sudo apt-get install libseccomp-dev | |
- name: Set up Rust | |
run: rustup show | |
- name: Build test contracts | |
working-directory: tests/contracts/hello | |
run: | | |
cargo build --target wasm32-unknown-unknown --release | |
mv target/wasm32-unknown-unknown/release/hello.wasm ../../e2e/contracts/hello.wasm | |
- name: Build oas20 contract | |
working-directory: contract-sdk/specs/token/oas20 | |
run: | | |
cargo build --target wasm32-unknown-unknown --release | |
mv target/wasm32-unknown-unknown/release/oas20.wasm ../../../../tests/e2e/contracts/oas20.wasm | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20.x" | |
- name: Lint E2E tests | |
uses: golangci/[email protected] | |
with: | |
# NOTE: The version must be specified without the patch version. | |
version: v1.51.2 | |
working-directory: tests/e2e | |
lint-go-reflect: | |
name: lint-go-reflect | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.x' | |
- name: Lint reflect-go | |
uses: golangci/[email protected] | |
with: | |
# NOTE: The version must be specified without the patch version. | |
version: v1.51.2 | |
working-directory: client-sdk/ts-web/core/reflect-go | |
lint-ts-web: | |
name: lint-ts-web | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js LTS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
cache: npm | |
cache-dependency-path: 'client-sdk/ts-web/package-lock.json' | |
- name: Install dependencies and build | |
working-directory: client-sdk/ts-web | |
run: npm ci --foreground-scripts | |
- name: Lint ts-web/core | |
working-directory: client-sdk/ts-web/core | |
run: npm run-script lint | |
- name: Lint ts-web/ext-utils | |
working-directory: client-sdk/ts-web/ext-utils | |
run: npm run-script lint | |
- name: Lint ts-web/signer-ledger | |
working-directory: client-sdk/ts-web/signer-ledger | |
run: npm run-script lint | |
- name: Lint ts-web/rt | |
working-directory: client-sdk/ts-web/rt | |
run: npm run-script lint | |
lint-markdown: | |
name: lint-markdown | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Lint markdown | |
uses: nosborn/[email protected] | |
with: | |
files: docs |