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