From 847f25dd5d5b35ea7df411c2ba1f6531dc4036a7 Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Sat, 25 May 2024 11:52:12 +0200 Subject: [PATCH] add ci-bun.yml --- .github/workflows/ci-bun.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/ci-bun.yml diff --git a/.github/workflows/ci-bun.yml b/.github/workflows/ci-bun.yml new file mode 100644 index 0000000..9d0a337 --- /dev/null +++ b/.github/workflows/ci-bun.yml @@ -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