Skip to content

feat: add baseline command #21

feat: add baseline command

feat: add baseline command #21

Workflow file for this run

name: Test
on:
pull_request:
branches: [ "**" ]
paths-ignore:
- 'docs/**'
- '.gitignore'
- 'LICENSE'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install dependencies
run: |
if [ -f package-lock.json ]; then
npm ci --no-audit --no-fund
else
npm install --no-audit --no-fund
fi
- name: Lint
run: npm run lint
- name: Build
run: npm run build:ci
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
- name: Run tests
run: npm run test:ci