Skip to content

Added GitHub actions #1

Added GitHub actions

Added GitHub actions #1

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
- dev
jobs:
test:
name: 'Node.js v${{ matrix.node }}'
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 18
- 20
steps:
- uses: actions/setup-node@v3
with:
node-version: '${{ matrix.node }}'
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/checkout@v3
- name: 'Cache node_modules'
uses: actions/cache@v3
with:
path: ~/.npm
key: `${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }}`

Check failure on line 34 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}
- name: Install Dependencies
run: bun install
- name: Run All Tests
run: bun run test