File tree Expand file tree Collapse file tree 5 files changed +53
-15
lines changed Expand file tree Collapse file tree 5 files changed +53
-15
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,14 @@ name: ci
2
2
3
3
on :
4
4
schedule :
5
- - cron : ' 0 10 * * *' # everyday at 10am
5
+ - cron : ' 0 10 * * *'
6
6
push :
7
7
branches :
8
8
- ' master'
9
9
- ' releases/v*'
10
10
tags :
11
11
- ' v*'
12
12
pull_request :
13
- branches :
14
- - ' master'
15
- - ' releases/v*'
16
13
17
14
jobs :
18
15
main :
40
37
-
41
38
name : Available platforms
42
39
run : echo ${{ steps.qemu.outputs.platforms }}
43
- -
44
- name : Dump context
45
- uses : crazy-max/ghaction-dump-context@v1
46
40
47
41
error :
48
42
runs-on : ubuntu-latest
67
61
echo "::error::Should have failed"
68
62
exit 1
69
63
fi
70
- -
71
- name : Dump context
72
- if : always()
73
- uses : crazy-max/ghaction-dump-context@v1
Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' master'
7
+ - ' releases/v*'
8
+ pull_request :
9
+
10
+ jobs :
11
+ test :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ -
15
+ name : Checkout
16
+ uses : actions/checkout@v3
17
+ -
18
+ name : Test
19
+ uses : docker/bake-action@v2
20
+ with :
21
+ targets : test
22
+ -
23
+ name : Upload coverage
24
+ uses : codecov/codecov-action@v3
25
+ with :
26
+ file : ./coverage/clover.xml
Original file line number Diff line number Diff line change 6
6
- ' master'
7
7
- ' releases/v*'
8
8
pull_request :
9
- branches :
10
- - ' master'
11
- - ' releases/v*'
12
9
13
10
jobs :
11
+ prepare :
12
+ runs-on : ubuntu-latest
13
+ outputs :
14
+ targets : ${{ steps.targets.outputs.matrix }}
15
+ steps :
16
+ -
17
+ name : Checkout
18
+ uses : actions/checkout@v3
19
+ -
20
+ name : Targets matrix
21
+ id : targets
22
+ run : |
23
+ echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
24
+
14
25
validate :
15
26
runs-on : ubuntu-latest
27
+ needs :
28
+ - prepare
29
+ strategy :
30
+ fail-fast : false
31
+ matrix :
32
+ target : ${{ fromJson(needs.prepare.outputs.targets) }}
16
33
steps :
17
34
-
18
35
name : Checkout
21
38
name : Validate
22
39
uses : docker/bake-action@v2
23
40
with :
24
- targets : validate
41
+ targets : ${{ matrix.target }}
Original file line number Diff line number Diff line change 1
1
[ ![ GitHub release] ( https://img.shields.io/github/release/docker/setup-qemu-action.svg?style=flat-square )] ( https://github.com/docker/setup-qemu-action/releases/latest )
2
2
[ ![ GitHub marketplace] ( https://img.shields.io/badge/marketplace-docker--setup--qemu-blue?logo=github&style=flat-square )] ( https://github.com/marketplace/actions/docker-setup-qemu )
3
3
[ ![ CI workflow] ( https://img.shields.io/github/actions/workflow/status/docker/setup-qemu-action/ci.yml?branch=master&label=ci&logo=github&style=flat-square )] ( https://github.com/docker/setup-qemu-action/actions?workflow=ci )
4
+ [ ![ Test workflow] ( https://img.shields.io/github/actions/workflow/status/docker/setup-qemu-action/test.yml?branch=master&label=test&logo=github&style=flat-square )] ( https://github.com/docker/setup-qemu-action/actions?workflow=test )
5
+ [ ![ Codecov] ( https://img.shields.io/codecov/c/github/docker/setup-qemu-action?logo=codecov&style=flat-square )] ( https://codecov.io/gh/docker/setup-qemu-action )
4
6
5
7
## About
6
8
Original file line number Diff line number Diff line change
1
+ comment : false
2
+ github_checks :
3
+ annotations : false
You can’t perform that action at this time.
0 commit comments