From 15b0a54e298d237494ba2c1cdcc83880e03a1fbe Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Thu, 7 Sep 2023 23:45:23 +0200 Subject: [PATCH] chore: add Bun CI workflow --- .github/workflows/bun.yml | 25 +++++++++++++++++++++++++ .github/workflows/node.js.yml | 5 ----- 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/bun.yml diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml new file mode 100644 index 00000000..7c14f3bb --- /dev/null +++ b/.github/workflows/bun.yml @@ -0,0 +1,25 @@ +name: Bun CI + +on: + pull_request: + branches: ['main'] + +jobs: + build: + name: Bun ${{ matrix.bun-version }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + matrix: + bun-version: [latest, canary] + os: ['ubuntu-latest'] + + steps: + - uses: actions/checkout@v3 + - name: Bun ${{ matrix.bun-version }} + uses: oven-sh/setup-bun@v1 + with: + bun-version: ${{ matrix.bun-version }} + - run: bun install + - run: bun run eslint + - run: bun run build diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 05c3fa0f..877c3246 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,6 +1,3 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - name: Node.js CI on: @@ -16,7 +13,6 @@ jobs: matrix: node-version: [18.x] os: ['ubuntu-latest'] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v3 @@ -25,7 +21,6 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm install -g npm@latest - run: npm ci - run: npm run eslint - run: npm run build