This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
chore: fix typo #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'playground/**' | |
- 'media/**' | |
- 'examples/**' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'playground/**' | |
- 'media/**' | |
- 'examples/**' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: pnpm | |
- name: Install | |
run: pnpm i | |
- name: Lint | |
run: pnpm run lint | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: pnpm | |
- name: Install | |
run: pnpm i | |
- name: Build | |
run: pnpm run build | |
test: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
node_version: [14.x, 16.x] | |
os: [ubuntu-latest] # , macos-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set node version to ${{ matrix.node_version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
cache: pnpm | |
- name: Install | |
run: pnpm i | |
- name: Test | |
run: pnpm run test |