👷 Adding CI for tests
Run Swift Tests / build (push) Failing after 58s

This commit is contained in:
Victor Bodinaud
2024-03-22 15:10:31 +01:00
parent a5ff5b34a3
commit 9246974867
3 changed files with 26 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Run Swift Tests
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Swift
uses: swift-actions/setup-swift@v2
- name: Get swift version
run: swift --version
- name: Build and test
run: |
swift test
+1
View File
@@ -1,5 +1,6 @@
.DS_Store
/.build
/.vscode
/Packages
xcuserdata/
DerivedData/
+3
View File
@@ -5,6 +5,9 @@
//
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
public enum NetworkError: Error {
case badRequest