reconcile/.github/workflows/check.yml
dependabot[bot] 870f205130
Bump actions/setup-node from 4.2.0 to 4.4.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.2.0 to 4.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4.2.0...v4.4.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-08 22:06:28 +00:00

84 lines
1.8 KiB
YAML

name: Check
on:
push:
branches: ['main']
pull_request:
branches: ['main']
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: '-Dwarnings'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4.4.0
with:
node-version: '22.x'
check-latest: true
- name: Setup rust
run: |
cargo install wasm-pack cargo-machete
- name: Build wasm
run: |
wasm-pack build --target web --features wasm
- name: Lint
run: |
cargo clippy --all-targets --all-features
cargo fmt --all -- --check
cargo machete
- name: Test
run: |
cargo test --verbose
cargo test --features serde
cargo test --features wasm
wasm-pack test --node --features wasm
publish:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4.4.0
with:
node-version: '22.x'
check-latest: true
registry-url: 'https://registry.npmjs.org'
- name: Setup rust
run: |
cargo install wasm-pack
- name: Build wasm
run: |
wasm-pack build --target web --features wasm
- name: Publish to crates.io
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
- name: Build reconcile-js
run: |
cd reconcile-js
npm ci
npm run build
- name: Publish reconcile-js to NPM
run: |
cd reconcile-js
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}