Skip to content

Commit cd9bfc1

Browse files
committed
Add codecov badge. Consolidate workflows into single with multiple jobs.
bugfix/fix-workflows
1 parent 594d3ad commit cd9bfc1

File tree

4 files changed

+25
-47
lines changed

4 files changed

+25
-47
lines changed

.github/workflows/macos-test.yml renamed to .github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: macos-test
1+
name: ci
22

33
on:
44
push:
@@ -10,7 +10,20 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
library:
13+
lint:
14+
runs-on: macos-12
15+
environment: default
16+
strategy:
17+
matrix:
18+
xcode: ['14.2']
19+
# Swift: 5.7
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Format lint
23+
run: swiftformat --lint .
24+
- name: Lint
25+
run: swiftlint .
26+
macos-test:
1427
runs-on: macos-12
1528
environment: default
1629
strategy:
@@ -28,3 +41,11 @@ jobs:
2841
- uses: codecov/codecov-action@v3
2942
with:
3043
fail_ci_if_error: true # optional (default = false)
44+
linux-test:
45+
runs-on: ubuntu-latest
46+
environment: default
47+
48+
steps:
49+
- uses: actions/checkout@v3
50+
- name: Run Tests
51+
run: swift test --parallel

.github/workflows/lint.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/linux-test.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ArgumentEncoding
22

3+
[![codecov](https://codecov.io/gh/MFB-Technologies-Inc/swift-argument-encoding/branch/main/graph/badge.svg?token=UU95IDUXAX)](https://codecov.io/gh/MFB-Technologies-Inc/swift-argument-encoding)
4+
35
A library for encoding types into an Array of Strings, or 'arguments'.
46

57
## Stability

0 commit comments

Comments
 (0)