-
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (46 loc) · 1.42 KB
/
Codecov.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: Codecov
on:
push:
branches:
- master
# pull_request_target:
# types: [opened, edited]
jobs:
check-branch:
runs-on: ubuntu-latest
strategy:
matrix:
string:
- repo_name: "Sillot"
repo_owner: "Hi-Windom"
package_json: "app/package.json"
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Extract packageManager from package.json
uses: sergeysova/jq-action@v2
id: packageManager
with:
cmd: "jq .packageManager ${{ matrix.string.package_json }} -r"
- name: Extract actionInstallCommand from package.json
uses: sergeysova/jq-action@v2
id: actionInstallCommand
with:
cmd: "jq .actionInstallCommand ${{ matrix.string.package_json }} -r"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Node pnpm
run: npm install -g ${{ steps.packageManager.outputs.value }}
working-directory: app
- name: Install dependencies
run: ${{ steps.actionInstallCommand.outputs.value }}
working-directory: app
- name: Run tests and collect coverage
run: pnpm run test
working-directory: app
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3