2020-08-17 08:32:27 +08:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-03-28 22:43:51 +08:00
|
|
|
- 'master'
|
2020-08-17 08:32:27 +08:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-03-28 22:43:51 +08:00
|
|
|
- 'master'
|
2020-08-17 08:32:27 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2022-03-02 19:03:44 +08:00
|
|
|
uses: actions/checkout@v3
|
2020-08-17 08:32:27 +08:00
|
|
|
-
|
2021-03-28 22:43:51 +08:00
|
|
|
name: Validate
|
2022-05-06 01:24:32 +08:00
|
|
|
uses: docker/bake-action@v2
|
2021-03-28 22:43:51 +08:00
|
|
|
with:
|
|
|
|
targets: validate
|
2020-08-17 08:32:27 +08:00
|
|
|
-
|
|
|
|
name: Test
|
2022-05-06 01:24:32 +08:00
|
|
|
uses: docker/bake-action@v2
|
2021-03-28 22:43:51 +08:00
|
|
|
with:
|
|
|
|
targets: test
|
2020-09-09 05:34:53 +08:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2022-04-06 19:03:02 +08:00
|
|
|
uses: codecov/codecov-action@v3
|
2020-09-09 05:34:53 +08:00
|
|
|
with:
|
|
|
|
file: ./coverage/clover.xml
|