Skip to content

Commit 88db477

Browse files
committed
ci: enable tests on GitHub Actions
1 parent fbdf90d commit 88db477

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

.copier-answers.ssf-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _src_path: https://github.com/dafyddj/copier-ssf-ci
44
failure_permitted_ignored: []
55
failure_permitted_patterns: []
66
formula_name: vault
7-
release_using_gha: false
7+
release_using_gha: true
88
renovate_extend_presets:
99
- github>saltstack-formulas/.github
1010
- github>saltstack-formulas/.github:copier

.github/workflows/main.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,46 @@ jobs:
4646
git config --global --add safe.directory $(pwd)
4747
pre-commit run --all-files --color always --verbose
4848
pre-commit run --color always --hook-stage manual commitlint-ci
49+
test:
50+
name: Test / Kitchen
51+
needs:
52+
- pre-commit
53+
- should-run
54+
if: fromJSON(needs.should-run.outputs.should-run)
55+
runs-on: ubuntu-latest
56+
timeout-minutes: 15
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
platform:
61+
- debian-12-master
62+
- debian-11-master
63+
- ubuntu-2404-master
64+
- ubuntu-2204-master
65+
- ubuntu-2004-master
66+
- debian-12-3007-4
67+
- debian-11-3007-4
68+
- ubuntu-2404-3007-4
69+
- ubuntu-2204-3007-4
70+
- ubuntu-2004-3007-4
71+
- debian-12-3006-12
72+
- debian-11-3006-12
73+
- ubuntu-2404-3006-12
74+
- ubuntu-2204-3006-12
75+
- ubuntu-2004-3006-12
76+
steps:
77+
- name: Debug on runner (When re-run with "Enable debug logging" checked)
78+
if: runner.debug
79+
uses: mxschmitt/action-tmate@7b6a61a73bbb9793cb80ad69b8dd8ac19261834c # v3.22
80+
with:
81+
detached: true
82+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
83+
- uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
84+
with:
85+
bundler-cache: true
86+
ruby-version: '3.1'
87+
- run: |
88+
bin/kitchen verify ${{ matrix.platform }}
4989
results:
5090
name: Release / Collect results
5191
permissions:
@@ -57,7 +97,12 @@ jobs:
5797
- uses: poseidon/wait-for-status-checks@899c768d191b56eef585c18f8558da19e1f3e707 # v0.6.0
5898
with:
5999
ignore: >
60-
Release / Collect results
100+
Release / Collect results,
101+
Test / Kitchen (debian-12-master),
102+
Test / Kitchen (debian-11-master),
103+
Test / Kitchen (ubuntu-2404-master),
104+
Test / Kitchen (ubuntu-2204-master),
105+
Test / Kitchen (ubuntu-2004-master)
61106
ignore_pattern: ^GitLab CI
62107
token: ${{ secrets.GITHUB_TOKEN }}
63108
- run: echo "::notice ::Workflow success!"

0 commit comments

Comments
 (0)