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

47 lines
913 B
YAML
Raw Normal View History

2019-09-22 05:17:07 +00:00
name: test
on:
pull_request:
branches:
- master
2020-05-06 22:01:12 +00:00
- feature/*
- releases/*
2019-09-22 05:17:07 +00:00
push:
branches:
- master
2020-05-06 22:01:12 +00:00
- feature/*
- releases/*
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:
-
# https://github.com/actions/checkout
name: Checkout
2020-05-06 21:12:22 +00:00
uses: actions/checkout@v2
-
name: Unshallow
run: git fetch --prune --unshallow
2019-09-22 05:17:07 +00:00
-
name: Install
2020-05-06 22:01:12 +00:00
run: npm install
2019-09-22 05:17:07 +00:00
-
name: Test
run: npm run test
2020-05-07 09:47:49 +00:00
-
# https://github.com/codecov/codecov-action
name: Upload coverage
uses: codecov/codecov-action@v1
if: success()
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/clover.xml