Skip to content

Commonality 1.0

Commonality 1.0 #1298

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout respository
uses: actions/checkout@v4
- name: 🏗 Setup
uses: ./.github/actions/setup
- name: Lint
run: pnpm run lint
type-check:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout respository
uses: actions/checkout@v4
- name: 🏗 Setup
uses: ./.github/actions/setup
- name: Type check
run: pnpm run type-check
test:
timeout-minutes: 15
runs-on: ubuntu-latest
env:
NODE_ENV: 'test'
steps:
- name: ⬇️ Checkout respository
uses: actions/checkout@v4
- name: 🏗 Setup
uses: ./.github/actions/setup
- name: Test
run: pnpm run test
integration-test:
timeout-minutes: 15
strategy:
matrix:
node-version: [17.x, 18.x, 20.x]
os:
- runner: ubuntu-latest
- runner: macos-latest
- runner: windows-latest
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout respository
uses: actions/checkout@v4
- name: 🏗 Setup
uses: ./.github/actions/setup
- name: Enable Corepack
run: corepack enable
- name: Prepare Yarn
run: corepack prepare yarn@3
- name: Prepare pnpm
run: corepack prepare pnpm@8
- name: Prune devDependencies
run: pnpm prune --prod
- name: Integration Test
run: pnpm -F commonality run test:integration