Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,35 @@ name: CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
test:
name: Test
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- uses: swift-actions/setup-swift@v2
with:
swift-version: "6.1.0"
- uses: swift-actions/setup-swift@v2
with:
swift-version: "6.1.0"

- name: Cache Swift Package Manager
uses: actions/cache@v3
with:
path: |
.build
~/.cache/org.swift.swiftpm
key: spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: spm-
- name: Cache Swift Package Manager
uses: actions/cache@v3
with:
path: |
.build
~/.cache/org.swift.swiftpm
key: spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: spm-

- name: Test
run: swift test --verbose
env:
IPInfoKitAccessToken: ${{ secrets.IPINFO_TOKEN }}
- name: Build (production)
run: swift build --configuration release

- name: Test
run: swift test --verbose
env:
IPInfoKitAccessToken: ${{ secrets.IPINFO_TOKEN }}
2 changes: 1 addition & 1 deletion Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/Alamofire/Alamofire", from: "5.8.1"),
.package(url: "https://github.com/Alamofire/Alamofire.git", from: "5.8.1"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
Loading