Skip to content

Commit c90cbea

Browse files
committed
ci: add GitHub Actions workflow for testing and building
1 parent 07e1226 commit c90cbea

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches: [ "**" ]
6+
7+
jobs:
8+
build-and-test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version-file: .nvmrc
18+
cache: 'pnpm'
19+
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 10
24+
25+
- name: Install dependencies
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: Lint
29+
run: pnpm run lint
30+
31+
- name: Build
32+
run: pnpm run build
33+
env:
34+
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
35+
APPLICATION_ID: ${{ secrets.APPLICATION_ID }}
36+
37+
- name: Run tests
38+
run: pnpm run test
39+

0 commit comments

Comments
 (0)