From 14b34bbc21bd9918f57716df8cb61543e2674765 Mon Sep 17 00:00:00 2001 From: Samuel Guillemet Date: Wed, 6 Dec 2023 15:19:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Add=20gradle=20cache=20cleaning?= =?UTF-8?q?=20step=20and=20update=20nx=20affected=20commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e11880e..036ba1dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,5 +27,11 @@ jobs: # This line is needed for nx affected to work when CI is running on a PR - run: git branch --track main origin/main + - name: Clean gradle cache + run: ./gradlew clean --no-daemon + - run: npx nx format:check - - run: npx nx affected -t lint,test,build --parallel=3 + # Run build only for nx tag 'lang:java' + - run: npx nx affected -t build --parallel=3 --exclude='*,!tag:lang:java' + # Run lint, test and build only for nx tag 'lang:python' + - run: npx nx affected -t lint,test,build --parallel=3 --exclude='*,!tag:lang:python'