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
|
2022-03-02 12:03:41 +08:00
|
|
|
uses: actions/checkout@v3
|
2020-08-18 23:40:31 +08:00
|
|
|
-
|
2021-04-02 07:19:14 +08:00
|
|
|
name: Validate
|
2022-05-06 01:43:45 +08:00
|
|
|
uses: docker/bake-action@v2
|
2021-04-02 07:19:14 +08:00
|
|
|
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
|
2022-05-06 01:43:45 +08:00
|
|
|
uses: docker/bake-action@v2
|
2021-04-02 07:19:14 +08:00
|
|
|
with:
|
|
|
|
targets: test
|
2023-01-28 08:43:10 +08:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2020-08-27 23:41:10 +08:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2022-04-06 12:02:53 +08:00
|
|
|
uses: codecov/codecov-action@v3
|
2020-08-27 23:41:10 +08:00
|
|
|
with:
|
|
|
|
file: ./coverage/clover.xml
|