From 7199d2be884acab292911071215111cb32a0fced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Sat, 27 Jan 2024 22:29:55 -0300 Subject: [PATCH 1/4] Added lighthouse badger as exception to run broken-links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- .github/workflows/broken-links.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/broken-links.yml b/.github/workflows/broken-links.yml index c91796fdb1db..280ba80ce09d 100644 --- a/.github/workflows/broken-links.yml +++ b/.github/workflows/broken-links.yml @@ -16,6 +16,7 @@ on: - "!.github/workflows/deploy-docker-tag.yml" - "!.github/workflows/deploy-image.yml" - "!.github/workflows/docker-slim.yml" + - "!.github/workflows/lighthouse-badger.yml" - "!.github/workflows/prettier.yml" pull_request: branches: @@ -32,6 +33,7 @@ on: - "!.github/workflows/deploy-docker-tag.yml" - "!.github/workflows/deploy-image.yml" - "!.github/workflows/docker-slim.yml" + - "!.github/workflows/lighthouse-badger.yml" - "!.github/workflows/prettier.yml" jobs: From e4461b08d603d87b60c50e0a8f43ebc0f7c10e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Sat, 27 Jan 2024 22:30:08 -0300 Subject: [PATCH 2/4] Now deploy run in parallel with broken links check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- .github/workflows/deploy.yml | 39 +++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 69cb8e98944e..e7de308834f4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,42 @@ name: Deploy site on: - workflow_run: - workflows: [Check for broken links] - types: [completed] + push: + branches: + - master + - main + paths: + - "assets/**" + - "**.html" + - "**.js" + - "**.liquid" + - "**/*.md" + - "**.yml" + - "!.github/workflows/axe.yml" + - "!.github/workflows/broken-links.yml" + - "!.github/workflows/deploy-docker-tag.yml" + - "!.github/workflows/deploy-image.yml" + - "!.github/workflows/docker-slim.yml" + - "!.github/workflows/lighthouse-badger.yml" + - "!.github/workflows/prettier.yml" + pull_request: + branches: + - master + - main + paths: + - "assets/**" + - "**.html" + - "**.js" + - "**.liquid" + - "**/*.md" + - "**.yml" + - "!.github/workflows/axe.yml" + - "!.github/workflows/broken-links.yml" + - "!.github/workflows/deploy-docker-tag.yml" + - "!.github/workflows/deploy-image.yml" + - "!.github/workflows/docker-slim.yml" + - "!.github/workflows/lighthouse-badger.yml" + - "!.github/workflows/prettier.yml" workflow_dispatch: permissions: From 4ae116c00dad5e234af6aa42c159453dc61d2f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Sat, 27 Jan 2024 22:31:47 -0300 Subject: [PATCH 3/4] Removed if condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- .github/workflows/deploy.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e7de308834f4..9b82bd54c430 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,8 +44,6 @@ permissions: jobs: deploy: - # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-a-workflow-based-on-the-conclusion-of-another-workflow - if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} # available images: https://github.com/actions/runner-images#available-images runs-on: ubuntu-latest steps: From ee85dd3a067a7c21409de4fff778623f2ae00564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Ara=C3=BAjo?= Date: Sat, 27 Jan 2024 22:35:03 -0300 Subject: [PATCH 4/4] Removed legacy installattion of mermaid cli MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: George Araújo --- .github/workflows/axe.yml | 1 - .github/workflows/broken-links-site.yml | 1 - .github/workflows/deploy.yml | 1 - 3 files changed, 3 deletions(-) diff --git a/.github/workflows/axe.yml b/.github/workflows/axe.yml index 82bbffba4cb2..e1b49d447360 100644 --- a/.github/workflows/axe.yml +++ b/.github/workflows/axe.yml @@ -47,7 +47,6 @@ jobs: - name: Install and Build 🔧 run: | pip3 install --upgrade jupyter - npm install -g mermaid.cli export JEKYLL_ENV=production bundle exec jekyll build --lsi - name: Purge unused CSS 🧹 diff --git a/.github/workflows/broken-links-site.yml b/.github/workflows/broken-links-site.yml index 1e322b507916..779eefff328e 100644 --- a/.github/workflows/broken-links-site.yml +++ b/.github/workflows/broken-links-site.yml @@ -35,7 +35,6 @@ jobs: - name: Install and Build 🔧 run: | pip3 install --upgrade jupyter - npm install -g mermaid.cli export JEKYLL_ENV=production bundle exec jekyll build --lsi - name: Purge unused CSS 🧹 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9b82bd54c430..f583e1a2f2fe 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -64,7 +64,6 @@ jobs: - name: Install and Build 🔧 run: | pip3 install --upgrade jupyter - npm install -g mermaid.cli export JEKYLL_ENV=production bundle exec jekyll build --lsi - name: Purge unused CSS 🧹