5667 civ 2.5 indicators UI for internal orders #1104
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: Client tests | |
on: | |
pull_request: | |
paths: | |
- "client/**" | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat ./client/.nvmrc)" | |
id: nvm | |
- name: Use Node.js (.nvmrc) | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: Install dependencies | |
run: cd ./client && rm -rf node_modules && yarn install --frozen-lockfile | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.TOKEN_REPO}} | |
- name: Run tests | |
run: cd ./client && yarn test |