👷 Adding CI for tests
Some checks failed
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

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
.gitignore vendored
View File

@@ -1,5 +1,6 @@
.DS_Store .DS_Store
/.build /.build
/.vscode
/Packages /Packages
xcuserdata/ xcuserdata/
DerivedData/ DerivedData/

View File

@@ -5,6 +5,9 @@
// //
import Foundation import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
public enum NetworkError: Error { public enum NetworkError: Error {
case badRequest case badRequest