2020-08-18 23:40:31 +08:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-04-02 07:19:14 +08:00
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
2020-08-18 23:40:31 +08:00
|
|
|
pull_request:
|
2021-04-02 07:19:14 +08:00
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
2020-08-18 23:40:31 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-11-19 01:13:18 +08:00
|
|
|
uses: actions/checkout@v2
|
2020-08-18 23:40:31 +08:00
|
|
|
-
|
2021-04-02 07:19:14 +08:00
|
|
|
name: Validate
|
|
|
|
uses: docker/bake-action@v1
|
|
|
|
with:
|
|
|
|
targets: validate
|
2021-04-24 00:14:38 +08:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
2020-08-18 23:40:31 +08:00
|
|
|
-
|
|
|
|
name: Test
|
2021-04-02 07:19:14 +08:00
|
|
|
uses: docker/bake-action@v1
|
|
|
|
with:
|
|
|
|
targets: test
|
2020-08-27 23:41:10 +08:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2021-07-23 18:56:44 +08:00
|
|
|
uses: codecov/codecov-action@v2
|
2020-08-27 23:41:10 +08:00
|
|
|
with:
|
|
|
|
file: ./coverage/clover.xml
|