Skip to content

Refactored enapi to post_build #124

Refactored enapi to post_build

Refactored enapi to post_build #124

Workflow file for this run

name: Rust
on:
push:
branches: [ main, beta, "+([0-9])?(.{+([0-9]),x}).x", next, next-major, alpha, "*-adhoc-*" ]
pull_request:
branches: [ main, beta, "+([0-9])?(.{+([0-9]),x}).x", next, next-major, alpha, "*-adhoc-*" ]
# If a newer commit triggers an action on a given ref, cancel any previous pending or in-progress action
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Ensure Rust is up to date
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
- name: Format
run: cargo fmt --verbose -- --check
- name: Run clippy
run: cargo clippy --verbose --locked -- -D warnings
- name: Npm
working-directory: ./enunion-test
run: npm ci
- name: Install TypeScript
run: npm install typescript -g
- name: Build and test
run: cd enunion-test && npm install && npm run build && tsc --noEmit && npm run test && cd ..