Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

build(deps): update yarn to v4 - autoclosed #5

build(deps): update yarn to v4 - autoclosed

build(deps): update yarn to v4 - autoclosed #5

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Build
run: yarn run build
- name: Upload compiled TypeScript
uses: actions/upload-artifact@v3
with:
name: tsc_output
path: tsc_output
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Lint
run: yarn run lint
style:
name: Check style
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Check style
run: yarn run style
test:
name: Run unit tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Run tests
run: yarn run test:coverage
- name: Submit test coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: true