Initialize CI #14
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set NODE_ENV | |
run: echo "NODE_ENV=development" >> $GITHUB_ENV | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' # Changed to 20, as 22 is not yet stable | |
cache: 'yarn' | |
- name: Install Yarn | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run unit tests | |
run: yarn run test |