From 97c11232ab430b52ffb3a41e72388f1b1e5ea519 Mon Sep 17 00:00:00 2001 From: Ahmed Noor E Alam Date: Tue, 2 Jan 2024 04:56:55 +0100 Subject: [PATCH] wip --- .github/workflows/verify-pr-build.yaml | 31 +++++++++++++++++++------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/verify-pr-build.yaml b/.github/workflows/verify-pr-build.yaml index 9115cf7..7164632 100644 --- a/.github/workflows/verify-pr-build.yaml +++ b/.github/workflows/verify-pr-build.yaml @@ -1,12 +1,27 @@ -name: Verify PR Build - -on: [push] +name: Verify PR build +on: + push: + branches: + # Change this if your primary branch is not main + - main + pull_request: jobs: - Explore-GitHub-Actions: + main: runs-on: ubuntu-latest steps: - - run: pwd - - run: ls -la - - run: yarn install - - run: npx nx affected -t build + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + # Cache node_modules + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'yarn' + - run: yarn ci + - uses: nrwl/nx-set-shas@v3 + # This line is needed for nx affected to work when CI is running on a PR + - run: git branch --track main origin/main + + - run: npx nx format:check + - run: npx nx affected -t lint,test,build --parallel=3