-
Notifications
You must be signed in to change notification settings - Fork 388
39 lines (37 loc) · 1 KB
/
slack_bot_tests.yml
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
36
37
38
39
name: Slack Bot Tests
on:
push:
branches: [main]
paths:
- src/interfaces/slack_bot/**
pull_request: {}
merge_group: {}
jobs:
interface_tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/interfaces/slack_bot
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: "src/interfaces/slack_bot/.nvmrc"
cache: "npm"
cache-dependency-path: "src/interfaces/slack_bot/package-lock.json"
- name: Install dependencies with npm
shell: bash
working-directory: src/interfaces/slack_bot
run: npm ci
- name: Check slack_bot is formatted
run: npm run format
- name: Check slack_bot types
run: npm run tsc:check
- name: Run slack_bot tests
run: npm run test
- name: Check slack_bot can build
run: npm run build