chore: release v1.0.0 #190
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: | |
- 'docs/**' | |
- '**.md' | |
- '**.mdx' | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
- '**.mdx' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: Install | |
run: nci | |
- name: Build | |
run: nr lib:build | |
- name: Lint | |
run: nr lint --cache | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: Install | |
run: nci | |
- name: Build | |
run: nr lib:build | |
- name: Format | |
run: nr format:check --cache | |
type-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: Install | |
run: nci | |
- name: Build | |
run: nr lib:build | |
- name: Type check | |
run: nr type-check | |
# e2e-test: | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# matrix: | |
# node: [18.x] | |
# os: [macos-latest] | |
# fail-fast: false | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Install pnpm | |
# uses: pnpm/action-setup@v2 | |
# - name: Set node ${{ matrix.node }} | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: ${{ matrix.node }} | |
# cache: pnpm | |
# - name: Setup | |
# run: npm i -g @antfu/ni | |
# - name: Install | |
# run: nci | |
# - name: Install Playwright | |
# run: npx playwright install --with-deps chromium webkit firefox | |
# - name: Build | |
# run: nr lib:build | |
# - name: Test | |
# run: npx playwright test | |
integration-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: [18.x] | |
os: [macos-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: pnpm | |
- name: Setup | |
run: npm i -g @antfu/ni | |
- name: Install | |
run: nci | |
- name: Test | |
run: nr test:integration |