Skip to content

✨ feat: upgrade node to 20 or 22 - INFRA-622 #633

✨ feat: upgrade node to 20 or 22 - INFRA-622

✨ feat: upgrade node to 20 or 22 - INFRA-622 #633

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
lint:
name: Linting
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
cache: yarn
- name: Install deps
run: yarn install
- name: Eslint check
run: yarn lint
test:
name: Unit tests
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20, 22]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: yarn
- name: Install deps
run: yarn install
- name: Test
run: yarn test
- name: Codecov upload
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
name: Building
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
cache: yarn
- name: Install deps
run: yarn install
- name: Build
run: yarn build