-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 839 Bytes
/
test.yml
File metadata and controls
35 lines (29 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Node.js Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }}
SLACK_ADMIN_USER_ID: ${{ secrets.SLACK_ADMIN_USER_ID }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_ORG: ${{ secrets.GITHUB_ORG }}
GITHUB_TEAM_ID: ${{ secrets.GITHUB_TEAM_ID }}
NODE_ENV: test