| 1 |
name: go test |
| 2 |
on: |
| 3 |
workflow_dispatch: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- master |
| 7 |
schedule: |
| 8 |
- cron: '0 17 * * 1' # https://crontab.guru/#0_17_*_*_1 |
| 9 |
|
| 10 |
jobs: |
| 11 |
build: |
| 12 |
runs-on: ${{ matrix.os }} |
| 13 |
strategy: |
| 14 |
matrix: |
| 15 |
os: [ubuntu-latest, windows-latest, macos-latest] |
| 16 |
js: [false] |
| 17 |
include: |
| 18 |
- os: ubuntu-latest |
| 19 |
js: true |
| 20 |
steps: |
| 21 |
- id: go-test |
| 22 |
uses: djherbis/actions/go-test@main |
| 23 |
with: |
| 24 |
github_token: ${{ secrets.GITHUB_TOKEN }} |
| 25 |
coveralls_parallel: true |
| 26 |
if: ${{ !matrix.js }} |
| 27 |
- id: go-test-js |
| 28 |
uses: djherbis/actions/go-test-js@main |
| 29 |
with: |
| 30 |
github_token: ${{ secrets.GITHUB_TOKEN }} |
| 31 |
coveralls_parallel: true |
| 32 |
if: ${{ matrix.js }} |
| 33 |
finish: |
| 34 |
needs: build |
| 35 |
runs-on: ubuntu-latest |
| 36 |
steps: |
| 37 |
- uses: shogo82148/actions-goveralls@v1 |
| 38 |
with: |
| 39 |
parallel-finished: true |