From fe2516a41badb6b6bfe126d31a6b7ee3d48322e1 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 15:55:56 +0000 Subject: [PATCH 01/18] ci: add sample nuxt-nightly action --- .github/workflows/nuxt-nightly.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/nuxt-nightly.yml diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml new file mode 100644 index 000000000..2dd06dabf --- /dev/null +++ b/.github/workflows/nuxt-nightly.yml @@ -0,0 +1,14 @@ +name: nuxt-nightly + +on: + # schedule: + # - cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM + workflow_dispatch: + +jobs: + test: + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + - name: Nuxt Nightly + uses: danielroe/nuxt-nightly-action@v0.0.1 From 68d6825179f4014063b81b928835d933866cec5b Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 15:56:44 +0000 Subject: [PATCH 02/18] chore: remove version --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 2dd06dabf..3e0449f6a 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -11,4 +11,4 @@ jobs: runs-on: ubuntu-latest steps: - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@v0.0.1 + uses: danielroe/nuxt-nightly-action From 072e01764913a56083377bd41afe3102f7f154d6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 15:57:39 +0000 Subject: [PATCH 03/18] chore: run on push --- .github/workflows/autofix.yml | 37 ------------------- .github/workflows/e2e.yml | 59 ------------------------------ .github/workflows/inspect.yml | 16 -------- .github/workflows/nuxt-nightly.yml | 1 + .github/workflows/sync.yml | 30 --------------- .github/workflows/test.yml | 37 ------------------- 6 files changed, 1 insertion(+), 179 deletions(-) delete mode 100644 .github/workflows/autofix.yml delete mode 100644 .github/workflows/e2e.yml delete mode 100644 .github/workflows/inspect.yml delete mode 100644 .github/workflows/sync.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml deleted file mode 100644 index 1862e6758..000000000 --- a/.github/workflows/autofix.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: autofix.ci # needed to securely identify the workflow - -on: - pull_request: - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.event.number || github.sha }} - cancel-in-progress: ${{ github.event_name != 'push' }} - -jobs: - code: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: "pnpm" - - - name: Install dependencies - run: pnpm install - - - name: Dedupe dependencies - if: ${{ contains(github.head_ref, 'renovate') }} - run: pnpm dedupe - - - name: Update bundle size - run: pnpm vitest run bundle -u - - - uses: autofix-ci/action@bee19d72e71787c12ca0f29de72f2833e437e4c9 - with: - commit-message: 'chore: apply automated fixes' diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml deleted file mode 100644 index 71fe3c9e5..000000000 --- a/.github/workflows/e2e.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: e2e - -on: - workflow_dispatch: - inputs: - url: - required: false - description: The URL to run the test suite against. If omitted, it runs against all. - type: string - deployment_status: - -concurrency: - group: ${{ github.workflow }}-${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - cancel-in-progress: true - -jobs: - playwright: - environment: - name: ${{ github.event.deployment.environment || 'Production' }} - url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' - runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/playwright:v1.39.0-focal - - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: "pnpm" - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - run: pnpm test:e2e - env: - BASE_URL: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - - lighthouse: - environment: - name: ${{ github.event.deployment.environment || 'Production' }} - url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: curl ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - - name: Audit URLs using Lighthouse - uses: treosh/lighthouse-ci-action@v10 - with: - urls: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - uploadArtifacts: true - temporaryPublicStorage: true - budgetPath: ./budget.json - runs: 3 - env: - LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} diff --git a/.github/workflows/inspect.yml b/.github/workflows/inspect.yml deleted file mode 100644 index f1b71ccd7..000000000 --- a/.github/workflows/inspect.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: connect - -on: - workflow_dispatch: - -permissions: - id-token: write - contents: read - actions: read - -jobs: - connect: - name: connect - runs-on: ubuntu-latest - steps: - - uses: self-actuated/connect-ssh@master diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 3e0449f6a..c976abe96 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -4,6 +4,7 @@ on: # schedule: # - cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM workflow_dispatch: + push: jobs: test: diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml deleted file mode 100644 index 295618c03..000000000 --- a/.github/workflows/sync.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: sync - -on: - push: - branches: - - main - paths: - - "src/content/blog/**" - - ".github/workflows/test.yml" - -jobs: - sync_devto: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: "pnpm" - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Update blogs on dev.to - run: pnpm nuxi prepare - env: - DEVTO_TOKEN: ${{ secrets.DEVTO_TOKEN }} - SYNC_DEV_TO: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 45fcf80ec..000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: test - -on: - push: - branches: - - main - pull_request: - branches: - - main - -concurrency: - group: ${{ github.workflow }}-${{ github.event.number || github.sha }} - cancel-in-progress: ${{ github.event_name != 'push' }} - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: "pnpm" - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Lint project - run: pnpm lint - - - name: Type check - run: pnpm test:types - - - name: Unit tests - run: pnpm test From 3d1c1717c89a7bf48c695b6e28422d59e8f1d8d5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 15:59:27 +0000 Subject: [PATCH 04/18] ci: specify branch --- .github/workflows/nuxt-nightly.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index c976abe96..73a876978 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -5,6 +5,8 @@ on: # - cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM workflow_dispatch: push: + branches: + ci/nightly jobs: test: From 5d19e4178a41a475de0efdb0afefbf3784608a64 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:00:10 +0000 Subject: [PATCH 05/18] ci: run on pr --- .github/workflows/nuxt-nightly.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 73a876978..bbe41292e 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -4,6 +4,7 @@ on: # schedule: # - cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM workflow_dispatch: + pull_request: push: branches: ci/nightly From 09d56bbb0026672f2bd5239804b2329ac75c2fe6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:02:01 +0000 Subject: [PATCH 06/18] ci: specify version --- .github/workflows/nuxt-nightly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index bbe41292e..9e378043c 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -4,7 +4,6 @@ on: # schedule: # - cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM workflow_dispatch: - pull_request: push: branches: ci/nightly @@ -15,4 +14,5 @@ jobs: runs-on: ubuntu-latest steps: - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action + uses: danielroe/nuxt-nightly-action@v0.0.1 + From 0f2408cf80529cf9538b6504edabad90d321c09f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:03:42 +0000 Subject: [PATCH 07/18] ci: add missing steps --- .github/workflows/nuxt-nightly.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 9e378043c..a774491fd 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -13,6 +13,15 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Nuxt Nightly uses: danielroe/nuxt-nightly-action@v0.0.1 From b0ed5bc354ac9d1e9f51175e2bed739c4d47bae5 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:23:41 +0000 Subject: [PATCH 08/18] chore: use hash as version --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index a774491fd..8915cbbbb 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -23,5 +23,5 @@ jobs: run: pnpm install - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@v0.0.1 + uses: danielroe/nuxt-nightly-action@7b1f959468bb79026996da857dea1bea65540d68 From 5e446c9e76168522c734f4481982cbb4b702d661 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:25:47 +0000 Subject: [PATCH 09/18] chore: bump --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 8915cbbbb..7a6121612 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -23,5 +23,5 @@ jobs: run: pnpm install - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@7b1f959468bb79026996da857dea1bea65540d68 + uses: danielroe/nuxt-nightly-action@c263e358545baabc638e728fbed7d255e7a04130 From 8bc037a5f919f44062c2e5810c8c73bfe814dbf4 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:29:45 +0000 Subject: [PATCH 10/18] ci: send github token --- .github/workflows/nuxt-nightly.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 7a6121612..5e7f1b059 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -24,4 +24,6 @@ jobs: - name: Nuxt Nightly uses: danielroe/nuxt-nightly-action@c263e358545baabc638e728fbed7d255e7a04130 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 6ad48e6213ba4c64c84eee5cf7032f6fe68b8a26 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:32:56 +0000 Subject: [PATCH 11/18] chore: bump --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 5e7f1b059..d895197c0 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -23,7 +23,7 @@ jobs: run: pnpm install - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@c263e358545baabc638e728fbed7d255e7a04130 + uses: danielroe/nuxt-nightly-action@0759bde0b39745baa16ed063887f9ef7decbdb54 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 4e2acbb0b344172d6940908d8b8e8fda22e5d924 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:34:38 +0000 Subject: [PATCH 12/18] chore: bump --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index d895197c0..a264d85e0 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -23,7 +23,7 @@ jobs: run: pnpm install - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@0759bde0b39745baa16ed063887f9ef7decbdb54 + uses: danielroe/nuxt-nightly-action@cafdeb6d1ebf9a539acac84fba6ce23e0498ec03 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 819c7e202f5bfe0176020831a8248d1537e60630 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:40:28 +0000 Subject: [PATCH 13/18] chore: bump --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index a264d85e0..639904d07 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -23,7 +23,7 @@ jobs: run: pnpm install - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@cafdeb6d1ebf9a539acac84fba6ce23e0498ec03 + uses: danielroe/nuxt-nightly-action@435f10e15a93e734af9e9d9e55974320ed9e9e3f env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From cda804c56bcef4d640a11cb2add2db700b122b81 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:43:36 +0000 Subject: [PATCH 14/18] chore: bump --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 639904d07..d51fcdc41 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -23,7 +23,7 @@ jobs: run: pnpm install - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@435f10e15a93e734af9e9d9e55974320ed9e9e3f + uses: danielroe/nuxt-nightly-action@4032862665755e7721530c3e5855607c73158426 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 670ce44192def71968e64752c8f0a888a89afa3f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:54:23 +0000 Subject: [PATCH 15/18] chore: bump --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index d51fcdc41..834b475ab 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -23,7 +23,7 @@ jobs: run: pnpm install - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@4032862665755e7721530c3e5855607c73158426 + uses: danielroe/nuxt-nightly-action@07089600b06f615c1d3aa4674ffed33da746aa4d env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f4c70f3fa5d660b7cdb9e388327fc6b03413f848 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 4 Dec 2023 16:57:57 +0000 Subject: [PATCH 16/18] chore: bump --- .github/workflows/nuxt-nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml index 834b475ab..3a7dd5cb2 100644 --- a/.github/workflows/nuxt-nightly.yml +++ b/.github/workflows/nuxt-nightly.yml @@ -23,7 +23,7 @@ jobs: run: pnpm install - name: Nuxt Nightly - uses: danielroe/nuxt-nightly-action@07089600b06f615c1d3aa4674ffed33da746aa4d + uses: danielroe/nuxt-nightly-action@5a73b8ffd230ea1299c32abf39c8d326d3afdf45 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 90742cc4eb653358a9af1bc95e3a6c2491516061 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 25 Dec 2023 16:09:02 +0000 Subject: [PATCH 17/18] chore: trigger ci From 212b791b6861dc5a92133546dec3aed097989fcc Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 30 Jan 2024 09:49:25 +0000 Subject: [PATCH 18/18] chore: trigger ci