-
Notifications
You must be signed in to change notification settings - Fork 2
132 lines (122 loc) · 4.2 KB
/
Copy pathtest-reusable-workflows.yml
File metadata and controls
132 lines (122 loc) · 4.2 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: Reusable Workflow Tests
on:
pull_request:
paths:
- ".github/workflows/*.yml"
- "!.github/workflows/sync-files.yml"
- ".github/workflow-test-fixtures/**"
workflow_dispatch:
permissions:
contents: read
jobs:
test-ci-node:
name: Test ci-node
permissions:
contents: read
pull-requests: write
uses: ./.github/workflows/ci-node.yml
with:
node-version: "24"
working-directory: ".github/workflow-test-fixtures/node-yarn"
app-directory: ".github/workflow-test-fixtures/node-yarn"
upload_artifacts: true
skip_sonar: true
commitlint-config-file: .github/workflow-test-fixtures/commitlint.config.mjs
extra-commands: "node --version"
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@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
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
permissions:
contents: read
pull-requests: write
uses: ./.github/workflows/ci-pnpm-node.yml
with:
node-version: "24"
working-directory: ".github/workflow-test-fixtures/node-pnpm"
app-directory: ".github/workflow-test-fixtures/node-pnpm"
pnpm-version: "11.5.3"
upload-artifacts: true
skip-sonar: true
extra-commands: "node --version"
commitlint-config-file: .github/workflow-test-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@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
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
permissions:
contents: read
pull-requests: write
uses: ./.github/workflows/ci-django-api.yml
with:
python-version: "3.12"
postgres-major-version: 14
working-directory: ".github/workflow-test-fixtures/django-api"
skip-sonar: true
commitlint-config-file: .github/workflow-test-fixtures/commitlint.config.mjs
pre-commit-config-file: .github/workflow-test-fixtures/django-api/.pre-commit-config.yaml
extra-commands: "python manage.py check"
secrets:
SONAR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-ci-uv-django-api:
name: Test ci-uv-django-api
permissions:
contents: read
pull-requests: write
uses: ./.github/workflows/ci-uv-django-api.yml
with:
python-version: "3.12"
postgres-major-version: 14
working-directory: ".github/workflow-test-fixtures/django-api-uv"
skip-sonar: true
commitlint-config-file: .github/workflow-test-fixtures/commitlint.config.mjs
pre-commit-config-file: .github/workflow-test-fixtures/django-api-uv/.pre-commit-config.yaml
extra-commands: "uv run python manage.py check"
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@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: test-python-dist
- name: Verify artifact file exists
run: test -f test.txt