This repository has been archived by the owner on May 6, 2024. It is now read-only.
Merge pull request #1015 from GSA/release #4073
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: Test | |
# yamllint disable-line rule:truthy | |
on: | |
workflow_dispatch: | |
push: | |
permissions: read-all | |
jobs: | |
test_frontend: | |
name: test frontend | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: Use Node.js (.nvmrc) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: Install dependencies | |
run: npm ci | |
- name: Test frontend | |
run: npm run test |