diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml new file mode 100644 index 0000000..7c14f3b --- /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 05c3fa0..877c324 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