Skip to content

Commit db13bb3

Browse files
committed
fix: support alpine
1 parent 78f372e commit db13bb3

2 files changed

Lines changed: 41 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v4.2.2
1616
with:
17-
submodules: 'true'
17+
submodules: "true"
1818
- name: Install dependencies
1919
run: pip install -r src/scripts/app/requirements.txt
2020
- name: Run tests and collect coverage
@@ -55,7 +55,7 @@ jobs:
5555
- name: Checkout
5656
uses: actions/checkout@v4.2.2
5757
with:
58-
submodules: 'true'
58+
submodules: "true"
5959
- name: Install dependencies
6060
run: pip install -r src/scripts/app/requirements.txt
6161
- name: Run tests and collect coverage
@@ -104,7 +104,7 @@ jobs:
104104
- name: Checkout
105105
uses: actions/checkout@v4.2.2
106106
with:
107-
submodules: 'true'
107+
submodules: "true"
108108
- name: Install deps
109109
run: |
110110
apt-get install git
@@ -133,3 +133,40 @@ jobs:
133133
version: v9.1.0
134134
verbose: true
135135
token: ${{ secrets.CODECOV_TOKEN }}
136+
137+
run-alpine:
138+
runs-on: ubuntu-latest
139+
container: alpine:latest
140+
steps:
141+
- name: Install deps
142+
run: |
143+
apk add git curl gnupg
144+
- name: Checkout
145+
uses: actions/checkout@v4.2.2
146+
with:
147+
submodules: "true"
148+
- name: Upload coverage to Codecov (script)
149+
uses: ./
150+
with:
151+
files: ./coverage/script/coverage-final.json
152+
flags: script-${{ matrix.os }}
153+
name: codecov-script
154+
verbose: true
155+
token: ${{ secrets.CODECOV_TOKEN }}
156+
- name: Upload coverage to Codecov (demo)
157+
uses: ./
158+
with:
159+
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
160+
flags: demo-${{ matrix.os }}
161+
name: codecov-demo
162+
verbose: true
163+
token: ${{ secrets.CODECOV_TOKEN }}
164+
- name: Upload coverage to Codecov (version)
165+
uses: ./
166+
with:
167+
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
168+
flags: version-${{ matrix.os }}
169+
name: codecov-version
170+
version: v9.1.0
171+
verbose: true
172+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)