Skip to content

Try yargs import (#341) #143

Try yargs import (#341)

Try yargs import (#341) #143

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Build and test
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18", "20", "21"]
name: Build and test with Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
# Have audit-ci run audit-ci to audit itself :)
- run: node ./dist/bin.js --config ./audit-ci.jsonc
- run: npm run coverage
- run: npm run lint
- run: npm run format -- --check