ci: update ci.yml
This commit is contained in:
parent
405680a3e1
commit
c8f57c867d
178
.github/workflows/ci.yml
vendored
178
.github/workflows/ci.yml
vendored
@ -1,89 +1,89 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 18.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: pnpm run lint
|
run: pnpm run lint
|
||||||
|
|
||||||
typecheck:
|
typecheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 18.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: pnpm run typecheck
|
run: pnpm run typecheck
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 18.x
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- run: pnpm run test:unit
|
- run: pnpm test
|
||||||
|
|
||||||
# test-e2e:
|
# test-e2e:
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
# steps:
|
# steps:
|
||||||
# - uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
# - uses: actions/cache@v3
|
# - uses: actions/cache@v3
|
||||||
# with:
|
# with:
|
||||||
# path: |
|
# path: |
|
||||||
# ~/.cache
|
# ~/.cache
|
||||||
# key: cypress-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
# key: cypress-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
|
||||||
# - uses: pnpm/action-setup@v2
|
# - uses: pnpm/action-setup@v2
|
||||||
|
|
||||||
# - name: Use Node.js ${{ matrix.node-version }}
|
# - name: Use Node.js ${{ matrix.node-version }}
|
||||||
# uses: actions/setup-node@v3
|
# uses: actions/setup-node@v3
|
||||||
# with:
|
# with:
|
||||||
# node-version: ${{ matrix.node-version }}
|
# node-version: ${{ matrix.node-version }}
|
||||||
# registry-url: https://registry.npmjs.org/
|
# registry-url: https://registry.npmjs.org/
|
||||||
# cache: pnpm
|
# cache: pnpm
|
||||||
|
|
||||||
# - run: pnpm install
|
# - run: pnpm install
|
||||||
|
|
||||||
# - name: Cypress PNPM Patch
|
# - name: Cypress PNPM Patch
|
||||||
# run: cp pnpm-lock.yaml package-lock.json
|
# run: cp pnpm-lock.yaml package-lock.json
|
||||||
|
|
||||||
# - name: Cypress
|
# - name: Cypress
|
||||||
# uses: cypress-io/github-action@v4
|
# uses: cypress-io/github-action@v4
|
||||||
# with:
|
# with:
|
||||||
# install-command: echo
|
# install-command: echo
|
||||||
# build: pnpm run build
|
# build: pnpm run build
|
||||||
# start: npx vite --port 3333
|
# start: npx vite --port 3333
|
||||||
|
Loading…
Reference in New Issue
Block a user