Skip to content

ci: create test and deployment workflow #4

ci: create test and deployment workflow

ci: create test and deployment workflow #4

Workflow file for this run

name: Test
on:
pull_request:
branches: [ "**" ]
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
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
APPLICATION_ID: ${{ secrets.APPLICATION_ID }}
- name: Run tests
run: npm test