Refactored enapi to post_build #124
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 .. |