-
Notifications
You must be signed in to change notification settings - Fork 2
117 lines (107 loc) · 3.73 KB
/
Copy pathtest-reusable-workflows.yml
File metadata and controls
117 lines (107 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Reusable Workflow Tests
on:
pull_request:
paths:
- ".github/workflows/*.yml"
- "!.github/workflows/sync-files.yml"
- ".github/workflow-fixtures/**"
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
test-ci-node:
name: Test ci-node
uses: ./.github/workflows/ci-node.yml
with:
node-version: "24"
working-directory: ".github/workflow-fixtures/node-yarn"
app-directory: ".github/workflow-fixtures/node-yarn"
upload_artifacts: true
skip_sonar: true
commitlint-config-file: .github/workflow-fixtures/commitlint.config.mjs
artifact-name: build-artifacts-yarn-24
secrets:
SONAR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-ci-node-assert-artifact:
name: Test ci-node (assert artifact)
runs-on: ubuntu-latest
needs: test-ci-node
steps:
- name: Download build artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: build-artifacts-yarn-24
- name: Verify expected build output
run: test -f dist/index.js
test-ci-pnpm-node:
name: Test ci-pnpm-node
uses: ./.github/workflows/ci-pnpm-node.yml
with:
node-version: "24"
working-directory: ".github/workflow-fixtures/node-pnpm"
app-directory: ".github/workflow-fixtures/node-pnpm"
pnpm-version: "11.5.3"
upload-artifacts: true
skip-sonar: true
commitlint-config-file: .github/workflow-fixtures/commitlint.config.mjs
secrets:
SONAR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-ci-pnpm-node-assert-artifact:
name: Test ci-pnpm-node (assert artifact)
runs-on: ubuntu-latest
needs: test-ci-pnpm-node
steps:
- name: Download build artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: build-artifacts-24
- name: Verify expected build output
run: test -f dist/index.js
test-ci-django-api:
name: Test ci-django-api
uses: ./.github/workflows/ci-django-api.yml
with:
python-version: "3.12"
postgres-major-version: 14
working-directory: ".github/workflow-fixtures/django-api"
skip-sonar: true
commitlint-config-file: .github/workflow-fixtures/commitlint.config.mjs
pre-commit-config-file: .github/workflow-fixtures/django-api/.pre-commit-config.yaml
secrets:
SONAR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-ci-uv-django-api:
name: Test ci-uv-django-api
uses: ./.github/workflows/ci-uv-django-api.yml
with:
python-version: "3.12"
postgres-major-version: 14
working-directory: ".github/workflow-fixtures/django-api-uv"
skip-sonar: true
commitlint-config-file: .github/workflow-fixtures/commitlint.config.mjs
pre-commit-config-file: .github/workflow-fixtures/django-api-uv/.pre-commit-config.yaml
secrets:
SONAR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-build-python-dists:
name: Test build-python-dists
uses: ./.github/workflows/build-python-dists.yml
with:
build-command: |
python - <<'PY'
from pathlib import Path
Path("dist").mkdir(exist_ok=True)
Path("dist/test.txt").write_text("ok", encoding="utf-8")
PY
artifact-path: "dist/test.txt"
artifact-name: "test-python-dist"
test-build-python-dists-assert-artifact:
name: Test build-python-dists (assert artifact)
runs-on: ubuntu-latest
needs: test-build-python-dists
steps:
- name: Download distribution artifact
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: test-python-dist
- name: Verify artifact file exists
run: test -f test.txt