- feature: refactor runner to use a nodejs backend #25
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: PR Check | |
on: | |
pull_request: | |
branches: [main] | |
defaults: | |
run: | |
working-directory: ./ | |
jobs: | |
check: | |
runs-on: ubuntu-22.04 | |
environment: development | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.14.0 | |
check-latest: false | |
registry-url: https://registry.npmjs.org | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
- name: Cache cargo assets | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: build-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install dependencies | |
run: | | |
npm cache verify | |
npm ci --no-audit --prefer-offline | |
- name: Run NX publish | |
run: npx nx run-many -t lint,test --verbose |