[AAE-32905] - check with adding cache

This commit is contained in:
VitoAlbano
2025-03-29 22:17:32 +00:00
parent 971415ac54
commit e1f9dccfd5

View File

@@ -209,7 +209,7 @@ jobs:
run: | run: |
BASE_REF="${{ github.event.pull_request.base.ref }}" BASE_REF="${{ github.event.pull_request.base.ref }}"
echo "Base ref is $BASE_REF" echo "Base ref is $BASE_REF"
AFFECTED=$(npx nx show projects --affected --target=test --base=origin/$BASE_REF --select=projects --plain) AFFECTED=$(npx nx show projects --affected --target=test --base=origin/$BASE_REF --select=projects --plain --exclude=cli,stories,eslint-angular)
echo "Affected projects: $AFFECTED" echo "Affected projects: $AFFECTED"
MATRIX_JSON=$(echo $AFFECTED | xargs -n1 | jq -R -s -c 'split("\n")[:-1] | map({ "project": . })') MATRIX_JSON=$(echo $AFFECTED | xargs -n1 | jq -R -s -c 'split("\n")[:-1] | map({ "project": . })')
MATRIX_JSON=$(echo "$MATRIX_JSON" | tr -d '\n' | sed 's/"$//') MATRIX_JSON=$(echo "$MATRIX_JSON" | tr -d '\n' | sed 's/"$//')
@@ -221,7 +221,7 @@ jobs:
timeout-minutes: 30 timeout-minutes: 30
name: "Lint" name: "Lint"
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [] needs: ["generate-affected-matrix"]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2