Skip to content

Commit

Permalink
ci: enable typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Jun 4, 2024
1 parent 7fe1591 commit ea32622
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: lts/*
cache: pnpm

- name: Install
Expand All @@ -26,29 +26,29 @@ jobs:
- name: Lint
run: pnpm run lint

# typecheck:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: pnpm/action-setup@v2
# - uses: actions/setup-node@v3
# with:
# node-version: 16.x
# cache: pnpm
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm

# - name: Install
# run: pnpm install
- name: Install
run: pnpm install

# - name: Typecheck
# run: pnpm run typecheck
- name: Typecheck
run: pnpm run typecheck

# check windows build
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [16.x]
node-version: [lts/*]
os: [ubuntu-latest, windows-latest]
fail-fast: false

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/gh-pages-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
run_install: true

- name: Use Node.js 16
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*
registry-url: https://registry.npmjs.org/
cache: pnpm

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
version: 7
run_install: true

- name: Use Node.js 16
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*
registry-url: https://registry.npmjs.org/
cache: pnpm

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
run_install: true

# after pnpm
- name: Use Node.js 16
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*
registry-url: https://registry.npmjs.org/
cache: pnpm

Expand Down

0 comments on commit ea32622

Please sign in to comment.