Skip to content

Release packages via Github Actions #5

Release packages via Github Actions

Release packages via Github Actions #5

Workflow file for this run

#
name: CI
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths-ignore:
- "**/*.md"
- "**/*.yml"
- "!.github/workflows/ci.yml"
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "**/*.yml"
- "!.github/workflows/ci.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: macos-14
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: Boshen/setup-rust@main
with:
# warm cache factory for all other CI jobs
# cache `target` directory to avoid download crates
save-cache: ${{ github.ref_name == 'main' }}
cache-key: warm
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Fixture workspace
working-directory: fixtures/yarn-workspace
run: yarn install --immutable
shell: bash
- run: cargo check
- run: cargo test
- run: git diff --exit-code # Must commit everything
napi:
name: Test NAPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Boshen/setup-rust@main
with:
# warm cache factory for all other CI jobs
# cache `target` directory to avoid download crates
save-cache: ${{ github.ref_name == 'main' }}
cache-key: warm
- uses: ./.github/actions/setup
- run: yarn build
- run: node napi/test/sanity.spec.mjs