Skip to content

chore(deps): bump semver from 5.7.1 to 5.7.2 #397

chore(deps): bump semver from 5.7.1 to 5.7.2

chore(deps): bump semver from 5.7.1 to 5.7.2 #397

##################################################################
# A Github action used to check pull requests
# More info at https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
##################################################################
name: Check the pull request automatically
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-linting:
name: Checks for linting errors
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup Node JS
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache dependencies
uses: actions/[email protected]
with:
path: '**/node_modules'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
- name: Run linting
run: yarn lint
run-tests:
name: Runs all tests
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup Node JS
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache dependencies
uses: actions/[email protected]
with:
path: '**/node_modules'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
- name: Run all test cases
run: yarn test --maxWorkers=100%
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_SECRET }}
directory: ./coverage/
flags: unittests
build:
name: Builds the app
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup Node JS
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache dependencies
uses: actions/[email protected]
with:
path: '**/node_modules'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install
- name: Build the app
run: yarn build