-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (46 loc) · 1.29 KB
/
main.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
name: Tests
on:
pull_request_target:
push:
branches:
- main
jobs:
unit_tests:
runs-on: ubuntu-latest
environment: staging
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: npm install
- run: npm run build
- run: npm test
- name: Upload coverage to CodeCov
uses: codecov/[email protected]
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
slug: slackapi/slack-health-score
health-score:
needs: unit_tests
permissions:
checks: write
runs-on: ubuntu-latest
environment: staging
steps:
- name: Setup repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: npm install
- run: npm run build
- name: Yo dawg I heard you like healthscores so I healthscored your healthscore so you can healthscore while you healthscore
uses: ./
with:
codecov_token: ${{ secrets.FILS_CODECOV_API_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
extension: js
include: src
codecov_max_attempts: 10
codecov_retry_delay: 10000
codecov_treat_timeout_as_error: true