doc: contributing & security #122
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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Automatically cancel older in-progress jobs on the same branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: moonrepo/setup-rust@v1 | |
with: | |
bins: just | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: just install | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Setup Rust | |
uses: moonrepo/setup-rust@v1 | |
with: | |
bins: just | |
- name: Install dependencies | |
run: just install | |
- name: Build | |
run: just build | |
build-wasm: | |
name: Build (WASM) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Setup Rust | |
uses: moonrepo/setup-rust@v1 | |
with: | |
targets: wasm32-unknown-unknown | |
bins: wasm-bindgen-cli, just, wasm-opt | |
- name: Install dependencies | |
run: just install | |
- name: Build | |
run: just build-wasm | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Setup Rust | |
uses: moonrepo/setup-rust@v1 | |
with: | |
targets: wasm32-unknown-unknown | |
bins: wasm-bindgen-cli, just, wasm-opt | |
- name: Install dependencies | |
run: just install | |
- name: Build | |
run: just build | |
- name: Build (WASM) | |
run: just build-wasm | |
- name: Test | |
run: just test |