chore: deps update #71
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: Test | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.changeset/**' | |
- '.github/**' | |
- '.husky/**' | |
- '.vscode/**' | |
- '**/*.md' | |
- 'examples/**' | |
pull_request: | |
paths-ignore: | |
- '.changeset/**' | |
- '.github/**' | |
- '.husky/**' | |
- '.vscode/**' | |
- '**/*.md' | |
- 'examples/**' | |
# Automatically cancel in-progress actions on the same branch | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Status | |
run: git status | |
- name: Lint (External) | |
run: pnpm run lint | |
- name: Format Check | |
run: pnpm format --list | |
build: | |
name: Build Packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build Packages | |
run: pnpm run build | |
- name: Upload Package Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts | |
path: | | |
packages/*/dist/** | |
if-no-files-found: error | |
test: | |
name: 'Test: ${{ matrix.os }} (node@${{ matrix.node_version }})' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
node_version: [18] | |
fail-fast: false | |
needs: | |
- build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
- name: Setup node@${{ matrix.node_version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
cache: 'pnpm' | |
- name: Download Build Artifacts | |
uses: actions/download-artifact@v3 | |
#- name: Display structure of downloaded files | |
# run: ls -R | |
- name: Install dependencies | |
run: pnpm install | |
- name: Test | |
run: pnpm run test |