Update package (#34) #118
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: gen-env-type-def-ci-cd | |
on: [push, pull_request] | |
jobs: | |
all: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node-version: [18, 20] | |
threads: [4] | |
name: Test with Node ${{ matrix.node-version }} on ${{ matrix.os }} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install Depedencies | |
run: pnpm i | |
- name: Lint Code | |
run: pnpm lint | |
- name: Format Check | |
run: pnpm format-check | |
- name: Run Tests | |
run: pnpm test | |
- name: Produce Build | |
run: pnpm build |