This repository was archived by the owner on Aug 4, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 691
94 lines (84 loc) · 2.35 KB
/
Copy pathci-test.yml
File metadata and controls
94 lines (84 loc) · 2.35 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: CI - Test
on:
push:
branches:
- main
paths:
- '.github/workflows/ci-test.yml'
- '.github/actions/**'
- 'src/**'
- 'plugin/**'
- 'example/screens/**'
- 'example/components/**'
- 'example/__tests__/**'
- 'jest.config.*'
- 'jest.setup.*'
- 'package.json'
- 'yarn.lock'
- 'codecov.yml'
pull_request:
branches:
- main
paths:
- '.github/workflows/ci-test.yml'
- '.github/actions/**'
- 'src/**'
- 'plugin/**'
- 'example/screens/**'
- 'example/components/**'
- 'example/__tests__/**'
- 'jest.config.*'
- 'jest.setup.*'
- 'package.json'
- 'yarn.lock'
- 'codecov.yml'
merge_group:
types:
- checks_requested
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Run linting
run: node .yarn/releases/yarn-3.6.1.cjs lint:ci
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Run library tests with coverage
run: node .yarn/releases/yarn-3.6.1.cjs test:ci
- name: Run example tests with coverage
run: node .yarn/releases/yarn-3.6.1.cjs test:ci:example
- name: List coverage files
run: |
echo "Library coverage:"
ls -la coverage/ || echo "No library coverage directory"
# echo "Example coverage:"
# ls -la example/coverage/ || echo "No example coverage directory"
- name: Upload library coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: hyochan/react-native-iap
files: ./coverage/lcov.info
flags: library
name: library-coverage
fail_ci_if_error: false
verbose: true
# - name: Upload example coverage to Codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: hyochan/react-native-iap
# files: ./example/coverage/lcov.info
# flags: example
# name: example-coverage
# fail_ci_if_error: false
# verbose: true