Skip to content

Build & Test #26

Build & Test

Build & Test #26

Workflow file for this run

name: Build & Test
on:
push:
jobs:
build-and-test:
runs-on:
ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Load .nvmrc
id: nvmrc
run: echo "version=$(cat .nvmrc)" >> GITHUB_OUTPUT
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvmrc.outputs.version }}"
cache: yarn
- name: Install modules
run: yarn install
- name: Build
run: yarn build
- name: Lint
run: yarn lint:check
- name: Test
run: yarn test --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3