feat: enhance env replacement with esbuild #317
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: [master, develop] | |
pull_request: | |
branches: [master, develop, next] | |
jobs: | |
test: | |
name: Test | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: true | |
- name: Lint | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: pnpm lint | |
- name: Type check | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: pnpm type-check | |
- name: Test | |
run: pnpm test |