Skip to content

Commit

Permalink
build: add pr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nutgaard committed Jun 13, 2024
1 parent 8acafbc commit 9e0bf62
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test and build

on:
push:
branches-ignore:
- master

env:
CI: true
jobs:
test-and-build:
name: Test and build
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
name: Setup node ${{ matrix.node }}
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
# - name: Test
# run: npm run test
- name: Build
run: bun run build
# TODO setup tests
# - name: Report coverage
# if: ${{ matrix.node == '18' }}
# uses: codecov/codecov-action@v3

0 comments on commit 9e0bf62

Please sign in to comment.