Skip to content

Commit ef7c8c8

Browse files
Update ci.yml
1 parent 8aa1716 commit ef7c8c8

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,51 @@
1+
name: GitHub CI
2+
3+
#on:
4+
pull_request:
5+
push:
6+
# schedule:
7+
- cron: 0 0 * * 0
8+
workflow_dispatch:
9+
10+
defaults:
11+
run:
12+
shell: 'bash -Eeuo pipefail -x {0}'
13+
14+
jobs:
15+
16+
generate-jobs:
17+
name: Generate Jobs
18+
runs-on: ubuntu-latest
19+
outputs:
20+
strategy: ${{ steps.generate-jobs.outputs.strategy }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: docker-library/bashbrew@HEAD
24+
- id: generate-jobs
25+
name: Generate Jobs
26+
run: |
27+
strategy="$("$BASHBREW_SCRIPTS/github-actions/generate.sh")"
28+
strategy="$(.github/workflows/munge.sh -c <<<"$strategy")"
29+
echo "strategy=$strategy" >> "$GITHUB_OUTPUT"
30+
jq . <<<"$strategy" # sanity check / debugging aid
31+
32+
test:
33+
needs: generate-jobs
34+
strategy: ${{ fromJson(needs.generate-jobs.outputs.strategy) }}
35+
name: ${{ matrix.name }}
36+
runs-on: ${{ matrix.os }}
37+
steps:
38+
- uses: actions/checkout@v4
39+
- name: Prepare Environment
40+
run: ${{ matrix.runs.prepare }}
41+
- name: Pull Dependencies
42+
run: ${{ matrix.runs.pull }}
43+
- name: Build ${{ matrix.name }}
44+
run: ${{ matrix.runs.build }}
45+
- name: History ${{ matrix.name }}
46+
run: ${{ matrix.runs.history }}
47+
- name: Test ${{ matrix.name }}
48+
run: ${{ matrix.runs.test }}
49+
- name: '"docker images"'
50+
run: ${{ matrix.runs.images }}
151

0 commit comments

Comments
 (0)