name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
clippy_check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]
steps:
- uses: actions/checkout@v1
- name: Cancel Workflow Action
uses: styfle/cancel-workflow-action@0.4.1
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features -- -D warnings
smoke_test:
name: Smoke test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable]
node: [ '12', '14' ]
steps:
- uses: actions/checkout@v2
- name: Cancel Workflow Action
uses: styfle/cancel-workflow-action@0.4.1
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Unit tests
run: cargo test
- name: Install nj-cli build
run: cargo install nj-cli
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Test
run: make test