2020-04-10 18:42:25 +03:00
|
|
|
name: Test
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-05-27 15:17:36 +03:00
|
|
|
- main
|
2020-04-10 18:42:25 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-06-24 19:50:29 +03:00
|
|
|
node: [ '14' ]
|
2020-04-10 18:42:25 +03:00
|
|
|
env:
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
CI: true
|
|
|
|
name: Node ${{ matrix.node }}
|
|
|
|
steps:
|
2021-04-28 14:01:39 +03:00
|
|
|
- uses: actions/checkout@v2
|
2021-07-09 03:59:24 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-04-10 18:42:25 +03:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
- run: yarn install
|
|
|
|
- run: yarn build
|
2021-10-20 13:06:44 +03:00
|
|
|
- run: yarn test:ci
|
|
|
|
|
|
|
|
- uses: codecov/codecov-action@v2
|
2021-10-04 17:45:14 +03:00
|
|
|
|
|
|
|
- uses: daniellockyer/action-slack-build@master
|
|
|
|
if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
|
|
|
env:
|
|
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|