From 04305e4390d178b5e40d0b499a1ade9f0173b879 Mon Sep 17 00:00:00 2001 From: Kai Volland Date: Fri, 21 Jun 2024 15:37:22 +0200 Subject: [PATCH] ci: use bun in workflow --- .github/workflows/on-pull-requests.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/on-pull-requests.yml b/.github/workflows/on-pull-requests.yml index 8e35260..a0e7878 100644 --- a/.github/workflows/on-pull-requests.yml +++ b/.github/workflows/on-pull-requests.yml @@ -6,32 +6,18 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 20.x] - steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} + - name: Use bun + uses: oven-sh/setup-bun@v1 - - name: Cache Node.js modules 💾 - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- - name: Install dependencies ⏬ - run: npm install + run: bun install - name: Lint code 💄 - run: npm run lint + run: bun run lint - name: Test code ✅ - run: npm run test + run: bun test