fix(ci): Strict turbo inputs and skip slow post-deploy QA for tags
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 9s
Build & Deploy / 🧪 QA (push) Successful in 3m26s
Build & Deploy / 🏗️ Build (push) Successful in 4m5s
Build & Deploy / 🚀 Deploy (push) Successful in 36s
Build & Deploy / 🧪 Smoke Test (push) Successful in 52s
Build & Deploy / 🛡️ Quality Gates (push) Successful in 1m42s
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / ♿ WCAG (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 9s
Build & Deploy / 🧪 QA (push) Successful in 3m26s
Build & Deploy / 🏗️ Build (push) Successful in 4m5s
Build & Deploy / 🚀 Deploy (push) Successful in 36s
Build & Deploy / 🧪 Smoke Test (push) Successful in 52s
Build & Deploy / 🛡️ Quality Gates (push) Successful in 1m42s
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / ♿ WCAG (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
This commit is contained in:
@@ -394,7 +394,7 @@ jobs:
|
|||||||
name: 🧪 Smoke Test
|
name: 🧪 Smoke Test
|
||||||
needs: [prepare, deploy]
|
needs: [prepare, deploy]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: needs.deploy.result == 'success'
|
if: needs.deploy.result == 'success' && github.ref_type != 'tag'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
@@ -427,7 +427,7 @@ jobs:
|
|||||||
name: ⚡ Lighthouse
|
name: ⚡ Lighthouse
|
||||||
needs: [prepare, deploy]
|
needs: [prepare, deploy]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: success() && needs.prepare.outputs.target != 'skip'
|
if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
@@ -502,7 +502,7 @@ jobs:
|
|||||||
name: ♿ WCAG
|
name: ♿ WCAG
|
||||||
needs: [prepare, deploy, smoke_test]
|
needs: [prepare, deploy, smoke_test]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: success() && needs.prepare.outputs.target != 'skip'
|
if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
@@ -584,7 +584,7 @@ jobs:
|
|||||||
name: 🛡️ Quality Gates
|
name: 🛡️ Quality Gates
|
||||||
needs: [prepare, deploy, smoke_test]
|
needs: [prepare, deploy, smoke_test]
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
if: success() && needs.prepare.outputs.target != 'skip'
|
if: success() && needs.prepare.outputs.target != 'skip' && github.ref_type != 'tag'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
|
|||||||
32
turbo.json
32
turbo.json
@@ -1,19 +1,51 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://turbo.build/schema.json",
|
"$schema": "https://turbo.build/schema.json",
|
||||||
|
"globalDependencies": [
|
||||||
|
"pnpm-lock.yaml",
|
||||||
|
".gitea/workflows/ci.yml",
|
||||||
|
".gitea/workflows/deploy.yml"
|
||||||
|
],
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"lint": {
|
"lint": {
|
||||||
|
"inputs": [
|
||||||
|
"app/**/*.tsx",
|
||||||
|
"app/**/*.ts",
|
||||||
|
"components/**/*.tsx",
|
||||||
|
"components/**/*.ts",
|
||||||
|
"lib/**/*.ts",
|
||||||
|
"eslint.config.mjs"
|
||||||
|
],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"typecheck": {
|
"typecheck": {
|
||||||
|
"inputs": [
|
||||||
|
"app/**/*.tsx",
|
||||||
|
"app/**/*.ts",
|
||||||
|
"components/**/*.tsx",
|
||||||
|
"components/**/*.ts",
|
||||||
|
"lib/**/*.ts",
|
||||||
|
"tsconfig.json"
|
||||||
|
],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
|
"inputs": [
|
||||||
|
"app/**/*.tsx",
|
||||||
|
"app/**/*.ts",
|
||||||
|
"components/**/*.tsx",
|
||||||
|
"components/**/*.ts",
|
||||||
|
"lib/**/*.ts",
|
||||||
|
"tests/**/*.ts",
|
||||||
|
"vitest.config.mts"
|
||||||
|
],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"check:spell": {
|
"check:spell": {
|
||||||
|
"inputs": ["content/**/*.{md,mdx}", "app/**/*.tsx", "components/**/*.tsx", "cspell.json"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
},
|
},
|
||||||
"check:mdx": {
|
"check:mdx": {
|
||||||
|
"inputs": ["content/**/*.{md,mdx}", "scripts/validate-mdx.mjs"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user