feat: add customizable CORS headers to JSON-RPC server #1533
Workflow file for this run
This file contains hidden or 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
| name: test | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| workflow_dispatch: | |
| env: | |
| MAINNET_EXECUTION_RPC: ${{ secrets.MAINNET_EXECUTION_RPC }} | |
| SEPOLIA_EXECUTION_RPC: ${{ secrets.SEPOLIA_EXECUTION_RPC }} | |
| jobs: | |
| version-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install jq | |
| run: sudo apt-get update && sudo apt-get install -y jq | |
| - name: Check version consistency | |
| run: bash ./scripts/check-version-consistency.sh | |
| check: | |
| runs-on: ubuntu-latest | |
| needs: version-check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: version-check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install libfont | |
| run: sudo apt install libfontconfig libfontconfig1-dev | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --all | |
| fmt: | |
| runs-on: ubuntu-latest | |
| needs: version-check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| components: rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: --all -- --check | |
| clippy: | |
| runs-on: ubuntu-latest | |
| needs: version-check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: --all -- -D warnings | |
| wasm-compatibility: | |
| runs-on: ubuntu-latest | |
| needs: version-check | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Add wasm target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Check wasm compatibility | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: check | |
| args: --target wasm32-unknown-unknown --package helios-ts |