Skip to content

Commit

Permalink
add ci-bun.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed May 25, 2024
1 parent c65e39e commit 847f25d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci-bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 'CI: NodeJS'

on:
push:
paths:
- '.github/**'
- 'tests/**'
- 'types/**'
- 'index.ts'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- '.github/**'
- 'tests/**'
- 'types/**'
- 'index.ts'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:

jobs:
default:
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 10

- uses: oven-sh/setup-bun@8f24390df009a496891208e5e36b8a1de1f45135 # v1.2.1
- name: Install dependencies
run: bun install --frozen-lockfile --strict-peer-dependencies

- name: Lint Source
run: bun run --if-present lint

- name: Build Source
run: bun run --if-present build

- name: Run Tests
run: bun run --if-present test

0 comments on commit 847f25d

Please sign in to comment.