From c313da3263bb7ea99b61fe53deb49aad3cfc5f71 Mon Sep 17 00:00:00 2001 From: Daniel Leroux Date: Wed, 2 Oct 2024 08:57:15 +0200 Subject: [PATCH] run all jobs --- .github/workflows/build.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 476972f..7991c90 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,10 +2,14 @@ name: CI on: push: - branches: ["main", "react-demo-app"] + branches: ["main", "react-demo-app"] # remove "react-demo-app" before merge to main pull_request: types: [opened, synchronize] +concurrency: + group: pr-${{ github.head_ref }} + cancel-in-progress: true + jobs: build: name: Build @@ -19,15 +23,32 @@ jobs: - name: Build run: pnpm build + lint: + name: Lint + timeout-minutes: 15 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/workflows/actions/install + - name: Lint run: pnpm lint + unit: + name: Unit + timeout-minutes: 15 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: ./.github/workflows/actions/install - name: Test run: pnpm test e2e: # Depend on build job to ensure the build is completed before running E2E tests - needs: [build] + # needs: [build] name: E2E timeout-minutes: 15 runs-on: ubuntu-latest