Clean up code #119
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: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
full: | |
name: Node.js Latest Full | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --ignore-scripts | |
- name: Run tests | |
run: pnpm test | |
- name: Run CLI | |
run: node cli.js | |
short: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 20 | |
- 18 | |
name: Node.js ${{ matrix.node-version }} Quick | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --ignore-scripts | |
- name: Run unit tests | |
run: pnpm unit | |
old: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 16 | |
- 14 | |
name: Node.js ${{ matrix.node-version }} Quick | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 7 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install --ignore-scripts | |
- name: Run unit tests | |
run: pnpm unit |