Skip to content

Commit 98ab9fd

Browse files
committed
Github Actions should test building a release version without compilation errors
1 parent e09a7de commit 98ab9fd

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,35 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
test:
1111
name: Test
1212
runs-on: macos-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v4
1616

17-
- uses: swift-actions/setup-swift@v2
18-
with:
19-
swift-version: "6.1.0"
17+
- uses: swift-actions/setup-swift@v2
18+
with:
19+
swift-version: "6.1.0"
2020

21-
- name: Cache Swift Package Manager
22-
uses: actions/cache@v3
23-
with:
24-
path: |
25-
.build
26-
~/.cache/org.swift.swiftpm
27-
key: spm-${{ hashFiles('**/Package.resolved') }}
28-
restore-keys: spm-
21+
- name: Cache Swift Package Manager
22+
uses: actions/cache@v3
23+
with:
24+
path: |
25+
.build
26+
~/.cache/org.swift.swiftpm
27+
key: spm-${{ hashFiles('**/Package.resolved') }}
28+
restore-keys: spm-
2929

30-
- name: Test
31-
run: swift test --verbose
32-
env:
33-
IPInfoKitAccessToken: ${{ secrets.IPINFO_TOKEN }}
30+
- name: Build (production)
31+
run: swift build --configuration release
32+
33+
- name: Test
34+
run: swift test --verbose
35+
env:
36+
IPInfoKitAccessToken: ${{ secrets.IPINFO_TOKEN }}

0 commit comments

Comments
 (0)