We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07e1226 commit c90cbeaCopy full SHA for c90cbea
1 file changed
.github/workflows/test.yml
@@ -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
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