This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
Merge pull request #455 from UN-OCHA/release-2024-02-08 #154
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 tests | |
on: [push] | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '^20.5.0' | |
- name: Get deps | |
run: | | |
npm install yarn --legacy-peer-deps | |
yarn install | |
- name: Run tests | |
run: | | |
export CTF_SPACE_ID='1'; export CTF_CDA_ACCESS_TOKEN='1'; | |
yarn run unit |