2020-08-18 17:40:31 +02:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- releases/v*
|
|
|
|
paths-ignore:
|
2020-08-18 17:45:23 +02:00
|
|
|
- "**.md"
|
2020-08-18 17:40:31 +02:00
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2020-08-18 17:45:23 +02:00
|
|
|
- "**.md"
|
2020-08-18 17:40:31 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-08-27 01:48:38 +02:00
|
|
|
test-containerized:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-09-24 06:22:55 +02:00
|
|
|
uses: actions/checkout@v2.3.3
|
2020-08-27 01:48:38 +02:00
|
|
|
-
|
|
|
|
name: Validate
|
|
|
|
run: docker buildx bake validate
|
|
|
|
-
|
|
|
|
name: Test
|
|
|
|
run: docker buildx bake test
|
|
|
|
|
2020-08-18 17:40:31 +02:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-09-24 06:22:55 +02:00
|
|
|
uses: actions/checkout@v2.3.3
|
2020-08-18 17:40:31 +02:00
|
|
|
-
|
|
|
|
name: Install
|
|
|
|
run: yarn install
|
|
|
|
-
|
|
|
|
name: Test
|
|
|
|
run: yarn run test
|
2020-08-27 17:41:10 +02:00
|
|
|
-
|
|
|
|
name: Upload coverage
|
2020-10-19 06:17:50 +02:00
|
|
|
uses: codecov/codecov-action@v1.0.14
|
2020-08-27 17:41:10 +02:00
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
file: ./coverage/clover.xml
|