Skip to content

WEB-12: Create .yml file for CI pipeline #1

WEB-12: Create .yml file for CI pipeline

WEB-12: Create .yml file for CI pipeline #1

Workflow file for this run

name: Jest CI
on:
push:
branches:
- main
- WEB-12-ci-pipeline
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache-dependency-path: ./yarn.lock
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Run Jest tests
run: yarn test