feat: add test
helper
#198
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: '🔬' | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
node: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: | |
[ | |
'06', | |
'07', | |
'08', | |
'09', | |
'10', | |
'11', | |
'12', | |
'13', | |
'14', | |
'15', | |
'16', | |
'17', | |
'18', | |
'19', | |
'20', | |
'latest', | |
] | |
name: Node.js ${{ matrix.node-version }} | |
steps: | |
- name: ➕ Actions - Checkout | |
uses: actions/checkout@v4 | |
- name: ➕ Actions - Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: ➕ Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: 📦 Installing Dependencies | |
run: npm ci | |
- name: 🤹🏻♀️ Building the Project | |
run: npm run build | |
- name: 🔬 Node ${{ matrix.node-version }} | |
run: FILTER=node-${{ matrix.node-version }} npm run test:ci | |
bun: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: ['0.5.3', '01', 'canary'] | |
name: Bun ${{ matrix.node-version }} | |
steps: | |
- name: ➕ Actions - Checkout | |
uses: actions/checkout@v4 | |
- name: ➕ Actions - Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: ➕ Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: 📦 Installing Dependencies | |
run: npm ci | |
- name: 🤹🏻♀️ Building the Project | |
run: npm run build | |
- name: 🔬 Bun ${{ matrix.node-version }} | |
run: FILTER=bun-${{ matrix.node-version }} npm run test:ci | |
deno: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: ['1.30.0', 'latest'] | |
name: Deno ${{ matrix.node-version }} | |
steps: | |
- name: ➕ Actions - Checkout | |
uses: actions/checkout@v4 | |
- name: ➕ Actions - Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: ➕ Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: 📦 Installing Dependencies | |
run: npm ci | |
- name: 🤹🏻♀️ Building the Project | |
run: npm run build | |
- name: 🔬 Deno ${{ matrix.node-version }} | |
run: FILTER=deno-${{ matrix.node-version }} npm run test:ci |