From 86bdb15f597f5cf60fc89125936bb5aa53f91e48 Mon Sep 17 00:00:00 2001 From: Aniruddha Adak Date: Fri, 13 Mar 2026 23:43:47 +0530 Subject: [PATCH 1/3] ci: modernize workflows, fix cache, and add Lighthouse auditing Signed-off-by: Aniruddha Adak --- .github/workflows/build-and-deploy.yml | 3 ++- .github/workflows/lighthouse.yml | 34 ++++++++++++++++++++++++++ lighthouserc.json | 23 +++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lighthouse.yml create mode 100644 lighthouserc.json diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index ca3a7307b..cb8e5e217 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -15,11 +15,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout source - uses: actions/checkout@v6 + uses: actions/checkout@v4 - name: Setup Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 + bundler-cache: true - name: Install dependencies run: | gem install bundler diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml new file mode 100644 index 000000000..362c07f1d --- /dev/null +++ b/.github/workflows/lighthouse.yml @@ -0,0 +1,34 @@ +@ +name: Lighthouse CI +on: + pull_request: + branches: + - main + +jobs: + lighthouse: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + + - name: Build Jekyll Site + run: | + gem install bundler + bundle install + bundle exec jekyll build + + - name: Run Lighthouse CI + uses: treosh/lighthouse-ci-action@12.1.0 + with: + configPath: './lighthouserc.json' + uploadArtifacts: true + temporaryPublicStorage: true + runs: 3 +@ diff --git a/lighthouserc.json b/lighthouserc.json new file mode 100644 index 000000000..4fac569d7 --- /dev/null +++ b/lighthouserc.json @@ -0,0 +1,23 @@ +@ +{ + "ci": { + "collect": { + "staticDistDir": "./_site", + "url": [ + "http://localhost/", + "http://localhost/events.html", + "http://localhost/projects/" + ] + }, + "assert": { + "preset": "lighthouse:no-pwa", + "assertions": { + "categories:performance": ["warn", {"minScore": 0.8}], + "categories:accessibility": ["warn", {"minScore": 0.8}], + "categories:seo": ["warn", {"minScore": 0.8}], + "categories:best-practices": ["warn", {"minScore": 0.8}] + } + } + } +} +@ From d6a4c9bbbac97544f9e781efb0bb38cdeed008a5 Mon Sep 17 00:00:00 2001 From: Aniruddha Adak Date: Sat, 14 Mar 2026 00:03:26 +0530 Subject: [PATCH 2/3] Fix file formatting and remove extraneous symbols --- .github/workflows/lighthouse.yml | 34 -------------------------------- lighthouserc.json | 23 --------------------- 2 files changed, 57 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 362c07f1d..e69de29bb 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -1,34 +0,0 @@ -@ -name: Lighthouse CI -on: - pull_request: - branches: - - main - -jobs: - lighthouse: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.2' - bundler-cache: true - - - name: Build Jekyll Site - run: | - gem install bundler - bundle install - bundle exec jekyll build - - - name: Run Lighthouse CI - uses: treosh/lighthouse-ci-action@12.1.0 - with: - configPath: './lighthouserc.json' - uploadArtifacts: true - temporaryPublicStorage: true - runs: 3 -@ diff --git a/lighthouserc.json b/lighthouserc.json index 4fac569d7..e69de29bb 100644 --- a/lighthouserc.json +++ b/lighthouserc.json @@ -1,23 +0,0 @@ -@ -{ - "ci": { - "collect": { - "staticDistDir": "./_site", - "url": [ - "http://localhost/", - "http://localhost/events.html", - "http://localhost/projects/" - ] - }, - "assert": { - "preset": "lighthouse:no-pwa", - "assertions": { - "categories:performance": ["warn", {"minScore": 0.8}], - "categories:accessibility": ["warn", {"minScore": 0.8}], - "categories:seo": ["warn", {"minScore": 0.8}], - "categories:best-practices": ["warn", {"minScore": 0.8}] - } - } - } -} -@ From 82cd85d72fc551d69264f19966898ee1f6a3eccc Mon Sep 17 00:00:00 2001 From: Aniruddha Adak Date: Sat, 14 Mar 2026 00:05:45 +0530 Subject: [PATCH 3/3] Fix file formatting completely --- .github/workflows/lighthouse.yml | 32 ++++++++++++++++++++++++++++++++ lighthouserc.json | 21 +++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index e69de29bb..204bc2368 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -0,0 +1,32 @@ +name: Lighthouse CI +on: + pull_request: + branches: + - main + +jobs: + lighthouse: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + + - name: Build Jekyll Site + run: | + gem install bundler + bundle install + bundle exec jekyll build + + - name: Run Lighthouse CI + uses: treosh/lighthouse-ci-action@12.1.0 + with: + configPath: './lighthouserc.json' + uploadArtifacts: true + temporaryPublicStorage: true + runs: 3 diff --git a/lighthouserc.json b/lighthouserc.json index e69de29bb..baedf86be 100644 --- a/lighthouserc.json +++ b/lighthouserc.json @@ -0,0 +1,21 @@ +{ + "ci": { + "collect": { + "staticDistDir": "./_site", + "url": [ + "http://localhost/", + "http://localhost/events.html", + "http://localhost/projects/" + ] + }, + "assert": { + "preset": "lighthouse:no-pwa", + "assertions": { + "categories:performance": ["warn", {"minScore": 0.8}], + "categories:accessibility": ["warn", {"minScore": 0.8}], + "categories:seo": ["warn", {"minScore": 0.8}], + "categories:best-practices": ["warn", {"minScore": 0.8}] + } + } + } +}