diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 90b9a6b..4446c16 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,23 +1,24 @@ -name: Build & Test with Bun +name: Build and tests with Node.js on: - push: - branches: [ master ] - pull_request: - branches: [ master ] + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build-and-test: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 # Checkout repo + - name: Checkout + uses: actions/checkout@v3 - - name: Setup Bun - uses: oven-sh/setup-bun@v1 # Setup bun - with: - bun-version: latest - - - run: bun i # Install dependencies - - run: bun test # Run tests + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 21.x + cache: "npm" + - run: npm ci + - run: npm run build + - run: npm run test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index fa849ea..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: bun-test -on: - pull_request: - push: - branches: - - 'master' -jobs: - my-job: - name: bun-test - runs-on: ubuntu-latest - steps: - # ... - - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v1 - - # run any `bun` or `bunx` command - - run: bun install - - run: bun test -