2023-01-17 19:07:30 +08:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
pull_request:
|
2023-01-31 09:35:21 +08:00
|
|
|
paths-ignore:
|
|
|
|
- '.github/buildx-releases.json'
|
2023-01-17 19:07:30 +08:00
|
|
|
|
|
|
|
jobs:
|
2023-01-31 03:30:44 +08:00
|
|
|
validate:
|
2023-01-17 19:07:30 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
-
|
|
|
|
name: Validate
|
|
|
|
uses: docker/bake-action@v2
|
|
|
|
with:
|
|
|
|
targets: validate
|
2023-01-31 03:30:44 +08:00
|
|
|
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2023-01-17 19:07:30 +08:00
|
|
|
-
|
|
|
|
name: Test
|
|
|
|
uses: docker/bake-action@v2
|
|
|
|
with:
|
2023-01-23 08:38:28 +08:00
|
|
|
targets: test-coverage
|
2023-01-24 07:29:03 +08:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-01-17 19:08:06 +08:00
|
|
|
# -
|
|
|
|
# name: Upload coverage
|
|
|
|
# uses: codecov/codecov-action@v3
|
|
|
|
# with:
|
|
|
|
# file: ./coverage/clover.xml
|