generated from 47ng/typescript-library-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 30
57 lines (53 loc) · 1.6 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Continuous Integration
env:
FORCE_COLOR: 3
on:
push:
branches:
- next
- feature/*
- dependabot/*
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
ci:
name: Continuous Integration
runs-on: ubuntu-latest
steps:
- id: yarn-cache
name: Get Yarn cache path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: lts/*
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
name: Load Yarn cache
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
name: Install dependencies
- name: Run integration tests
run: |
yarn build
yarn test:types
yarn test:unit
yarn test:integration
yarn test:coverage:merge
yarn test:coverage:report
- uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63
name: Report code coverage
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: 47ng/actions-slack-notify@main
name: Notify on Slack
if: always()
continue-on-error: true
with:
status: ${{ job.status }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}