Add web-based dashboard for managing sounds #2
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: CI (Dashboard) | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
typecheck: | |
name: Typecheck | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./bot | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
cache-dependency-path: '**/package-lock.json' | |
- name: Install deps | |
run: npm ci | |
- name: Run tsc | |
run: npm run typecheck | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./bot | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
cache-dependency-path: '**/package-lock.json' | |
- name: Install deps | |
run: npm ci | |
- name: Run Prettier | |
run: npm run prettier:check | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./bot | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
cache-dependency-path: '**/package-lock.json' | |
- name: Install deps | |
run: npm ci | |
- name: Run ESLint | |
run: npm run lint | |
- name: Save ESLint Report | |
# npm script for ESLint | |
# eslint --output-file eslint_report.json --format json src | |
# See https://eslint.org/docs/user-guide/command-line-interface#options | |
run: npm run lint:report | |
# Continue to the next step even if this fails | |
continue-on-error: true | |
- name: Annotate Code Linting Results | |
uses: ataylorme/eslint-annotate-action@v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
report-json: "eslint_report.json" |