Remove redundant line from check
task
#12
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: Run HCI code check | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache NPM dependencies (or restore previously cached) | |
id: npm-cache | |
uses: actions/cache@v4 | |
with: | |
path: node_modules # It's important to have a single directory that gets cached. | |
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install NPM dependencies | |
if: steps.npm-cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Format the front end code | |
run: npm run fmt | |
- name: Lint the front end code | |
run: npm run lint | |
- name: Type check the front end code | |
run: tsc | |
- name: Run front end tests | |
run: npm run test |