Skip to content

ci: create test and deployment workflow #1

ci: create test and deployment workflow

ci: create test and deployment workflow #1

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
cache: 'pnpm'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Build
run: pnpm run build
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
APPLICATION_ID: ${{ secrets.APPLICATION_ID }}
- name: Run tests
run: pnpm run test