Slack tool #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slack Bot - Format and build | |
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 |