2022-05-10 17:26:08 -07:00
|
|
|
name: Unit Tests
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [16.x]
|
|
|
|
steps:
|
2022-09-05 01:00:47 +05:30
|
|
|
- uses: actions/checkout@v3
|
2022-05-10 17:26:08 -07:00
|
|
|
|
2022-09-05 01:00:47 +05:30
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: yarn
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2022-05-10 17:26:08 -07:00
|
|
|
|
2022-09-05 01:00:47 +05:30
|
|
|
- name: Install Yarn
|
|
|
|
run: npm i yarn --global
|
2022-05-10 17:26:08 -07:00
|
|
|
|
2022-09-05 01:00:47 +05:30
|
|
|
- name: Install Packages
|
|
|
|
run: |
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
env:
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
2022-05-10 17:26:08 -07:00
|
|
|
|
2022-09-05 01:00:47 +05:30
|
|
|
- name: Run Unit Tests
|
|
|
|
run: |
|
|
|
|
yarn ci --coverage
|