diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2aea680..8ab2586 100755 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,27 +1,19 @@ name: build -on: [push] +on: + push: + branches: [main] + pull_request: + branches: [main] jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 20.x] - steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - name: yarn install, lint, build, and test - run: | - yarn install - yarn lint - yarn build - yarn test - env: - CI: true + - uses: actions/checkout@v3 + - uses: oven-sh/setup-bun@v1 + - run: bun install + - run: bun fmt --check + - run: bun lint + - run: bun export