Skip to content

Update all non-major dependencies #309

Update all non-major dependencies

Update all non-major dependencies #309

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: CI Suite
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: '8.x'
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
format:
needs: build
runs-on: ubuntu-latest
name: Format
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: '8.x'
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Format
run: pnpm format
lint:
needs: build
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: '8.x'
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
test:
needs: build
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: '8.x'
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Vitest
run: pnpm test:unit
coverage:
needs: build
runs-on: ubuntu-latest
name: Coverage
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: '8.x'
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Coverage
run: pnpm coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3