Skip to content

Commit 8854440

Browse files
authored
Update swift.yml
1 parent 906d857 commit 8854440

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/swift.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,17 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Build
20-
run: swift build -v
21-
- name: Run tests
22-
run: swift test -v --enable-code-coverage
23-
- name: Upload coverage reports to Codecov
24-
uses: codecov/codecov-action@v5
19+
- name: Cache build
20+
id: cache-build
21+
uses: actions/cache@v4
2522
with:
26-
token: ${{ secrets.CODECOV_TOKEN }}
27-
slug: frankois944/KTViewModelBuilder
23+
path: |
24+
.build/
25+
key: ${{ runner.os }}-build
26+
- name: Run tests
27+
run: |
28+
swift test --enable-code-coverage
29+
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.SONAR_TOKEN }}
30+
31+
32+

0 commit comments

Comments
 (0)