cloudflare sbd-server #63
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
name: Static Analysis | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
static-analysis: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ | |
ubuntu-latest, | |
] | |
toolchain: [ | |
stable, | |
1.75.0 | |
] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Rust Toolchain | |
run: | | |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --no-self-update | |
rustup default ${{ matrix.toolchain }} | |
rustup component add rustfmt --toolchain ${{ matrix.toolchain }} | |
rustup component add clippy --toolchain ${{ matrix.toolchain }} | |
- name: NodeJS Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version: latest | |
cache: 'npm' | |
cache-dependency-path: ts/sbd-server/package-lock.json | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Make Static | |
run: make static |