Skip to content

Commit

Permalink
chore: added github checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Jun 28, 2024
1 parent 71d0546 commit b3e778c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tests
on: push
jobs:
test-node-js:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [14, 16, 18]
name: Node.js v${{ matrix.node-version }}
steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Checkout code
uses: actions/checkout@v2

- name: Install Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo 'export BUN_INSTALL="$HOME/.bun"' >> $GITHUB_ENV
echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> $GITHUB_ENV
source $GITHUB_ENV
- name: Verify Bun installation
run: bun --version

- name: Install dependencies
run: bun install

- name: Run checks
run: bun run make check

- name: Run tests
run: bun run make test

0 comments on commit b3e778c

Please sign in to comment.