feat: Add npmrc support check for Bun package manager #231
Workflow file for this run
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: Node.js CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v1 | |
- run: deno fmt --check | |
# TODO | |
# - run: deno lint | |
test: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest] | |
node-version: ["20.x"] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- uses: oven-sh/setup-bun@v1 | |
- run: corepack enable yarn | |
- run: npm i | |
- run: npm run build --if-present | |
- run: npm test | |
test-win: | |
strategy: | |
matrix: | |
platform: [windows-latest] | |
node-version: ["20.x"] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- run: corepack enable yarn | |
- run: npm i | |
- run: npm run build --if-present | |
- run: npm test |