Skip to content

Scaffold Go JSON data API and connect it to the front end #9

Scaffold Go JSON data API and connect it to the front end

Scaffold Go JSON data API and connect it to the front end #9

Workflow file for this run

name: Run HCI code check
on: [push, pull_request]
env:
HCI_ROOT_DIR: "."
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