Skip to content

Merge pull request #2487 from oasisprotocol/martin/docs/public-var #11458

Merge pull request #2487 from oasisprotocol/martin/docs/public-var

Merge pull request #2487 from oasisprotocol/martin/docs/public-var #11458

Workflow file for this run

# 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
env:
CMAKE_POLICY_VERSION_MINIMUM: 3.5
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:
features: debug-logging,test,unsafe-allow-debug
exclude: rofl-appd-localnet
token: ${{ secrets.GITHUB_TOKEN }}
- name: Lint Rust code (mock TEE)
uses: ./.github/actions/lint-rust
with:
features: debug-logging,debug-mock-sgx,test,unsafe-allow-debug
exclude: rofl-containers,rofl-appd,rofl-scheduler
token: ${{ secrets.GITHUB_TOKEN }}
- name: Lint Rust code (TDX)
uses: ./.github/actions/lint-rust
with:
features: tdx
exclude: rofl-appd-localnet
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@v5
with:
go-version: "1.26.x"
- name: Lint Go client-sdk
uses: golangci/golangci-lint-action@v8
with:
# NOTE: The version must be specified without the patch version.
version: v2.11
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: Create mock contract files for lint
run: |
touch tests/e2e/contracts/build/hello.wasm
touch tests/e2e/contracts/build/oas20.wasm
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.26.x"
- name: Lint E2E tests
uses: golangci/golangci-lint-action@v8
with:
# NOTE: The version must be specified without the patch version.
version: v2.11
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@v5
with:
go-version: "1.26.x"
- name: Lint reflect-go
uses: golangci/golangci-lint-action@v8
with:
# NOTE: The version must be specified without the patch version.
version: v2.11
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@v4
with:
node-version: "18.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/github-action-markdown-cli@v3.3.0
with:
files: docs
lint-python-rofl-client:
name: lint-python-rofl-client
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
working-directory: rofl-client/py
run: uv sync --dev
- name: Lint Python code
working-directory: rofl-client/py
run: uv run ruff check src tests examples
lint-rofl-client-ts:
name: lint-rofl-client-ts
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: "24.x"
cache: npm
cache-dependency-path: "rofl-client/ts/package-lock.json"
- name: Install deps
working-directory: rofl-client/ts
run: npm ci --foreground-scripts
- name: Lint
working-directory: rofl-client/ts
run: npm run lint