Skip to content

release: v0.3.2 — Resuma Client, static assets, and security hardening #21

release: v0.3.2 — Resuma Client, static assets, and security hardening

release: v0.3.2 — Resuma Client, static assets, and security hardening #21

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy -p resuma-macros -p resuma -- -D warnings
- name: Test
run: cargo test -p resuma --all-targets
- name: Check workspace
run: cargo check --workspace
- name: Build JS runtime
working-directory: runtime
run: |
npm ci
npm run build
npm run size
publish-dry-run:
runs-on: ubuntu-latest
needs: check
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: cargo publish --dry-run (macros first)
run: cargo publish -p resuma-macros --dry-run
- name: cargo publish --dry-run (resuma)
run: cargo publish -p resuma --dry-run