Merge validate and test workflows

This commit is contained in:
CrazyMax 2021-03-27 22:08:06 +01:00
parent e59258b94d
commit 830b9a9fa9
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 9 additions and 27 deletions

View File

@ -10,6 +10,7 @@ on:
pull_request:
branches:
- 'master'
- 'releases/v*'
paths-ignore:
- '**.md'
@ -20,12 +21,18 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Validate
uses: docker/bake-action@v1
with:
targets: validate
-
name: Test
run: docker buildx bake test
uses: docker/bake-action@v1
with:
targets: test
-
name: Upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/clover.xml

View File

@ -1,25 +0,0 @@
name: validate
on:
push:
branches:
- 'master'
- 'releases/v*'
paths-ignore:
- '**.md'
pull_request:
branches:
- 'master'
paths-ignore:
- '**.md'
jobs:
validate:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Validate
run: docker buildx bake validate