diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 4aab412..13ea83e 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -1,6 +1,7 @@ name: Test on Pull on: + workflow_dispatch: pull_request_target: types: [labeled] @@ -18,7 +19,7 @@ jobs: test: needs: security - name: Run Mocha Tests + name: Run Tests runs-on: ubuntu-latest steps: - name: ๐Ÿ‘€ Checkout Code @@ -29,11 +30,19 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - - name: ๐Ÿ“ฆ Install Yarn - run: corepack enable && yarn set version stable + - name: ๐Ÿ›  Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest - name: ๐Ÿ“ฆ Install Dependencies - run: yarn install + run: bun install + + - name: ๐Ÿงช Run Lint + run: bun lint + + - name: ๐Ÿงช Run Tests (in Bun) + run: bun test - - name: ๐Ÿงช Run Tests - run: yarn lint && yarn test + - name: ๐Ÿงช Run Tests (in Node) + run: npm run test diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml deleted file mode 100644 index b0f9272..0000000 --- a/.github/workflows/push.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Test on Push - -on: - workflow_dispatch: - push: - branches: - - chore/* - - feat/* - - dev/* - - main - -env: - NODE_VERSION: 20 - -jobs: - test: - name: Run Mocha Tests - runs-on: ubuntu-latest - steps: - - name: ๐Ÿ‘€ Checkout Code - uses: actions/checkout@v4 - - - name: ๐Ÿ— Install Node.js - uses: actions/setup-node@v4 - with: - node-version: ${{ env.NODE_VERSION }} - - - name: ๐Ÿ“ฆ Install Yarn - run: corepack enable && yarn set version stable - - - name: ๐Ÿ“ฆ Install Dependencies - run: yarn install - - - name: ๐Ÿงช Run Tests - run: yarn lint && yarn test