2022-08-10 11:11:32 +08:00
|
|
|
name: test
|
|
|
|
|
2022-08-10 15:58:12 +08:00
|
|
|
on: [pull_request]
|
2022-08-10 11:11:32 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: macos-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [14.x]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: yarn
|
|
|
|
- run: yarn run worker
|
2022-09-02 23:08:45 +08:00
|
|
|
- run: yarn test-cover
|
|
|
|
- name: Coveralls
|
|
|
|
uses: coverallsapp/github-action@master
|
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|