goreleaser-action/.github/workflows/test.yml

43 lines
775 B
YAML
Raw Normal View History

2019-09-22 05:17:07 +00:00
name: test
on:
push:
branches:
2020-05-23 23:15:17 +00:00
- master
- releases/v*
2020-05-10 14:24:22 +00:00
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
2019-09-22 05:17:07 +00:00
jobs:
test:
2020-05-07 09:50:41 +00:00
runs-on: ${{ matrix.os }}
2020-05-07 09:51:19 +00:00
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
2019-09-22 05:17:07 +00:00
steps:
-
name: Checkout
uses: actions/checkout@v2.3.2
2020-06-15 16:36:44 +00:00
with:
fetch-depth: 0
2019-09-22 05:17:07 +00:00
-
name: Install
run: yarn install
2019-09-22 05:17:07 +00:00
-
name: Test
run: yarn run test
2020-05-07 09:47:49 +00:00
-
name: Upload coverage
uses: codecov/codecov-action@v1.0.13
2020-05-07 09:47:49 +00:00
if: success()
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/clover.xml