Skip to content

[VO-1069] chore: Add CI with Github Actions #1

[VO-1069] chore: Add CI with Github Actions

[VO-1069] chore: Add CI with Github Actions #1

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
lint:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- name: Lint
run: yarn lint
test:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- name: Unit tests
run: yarn test
build:
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- name: Build app
run: yarn build