[Testing and Reliability] Unit Testing & CI #25

Merged
Mahtan merged 3 commits from feature/unit-testing into main 2024-04-03 17:05:00 +00:00
3 changed files with 22 additions and 1 deletions
Showing only changes of commit ff810b9341 - Show all commits

View File

@@ -0,0 +1,20 @@
name: Run Swift Tests
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: macos
steps:
- name: ⬇️ Checkout code v3
uses: actions/checkout@v4
- name: 🛠️ Setup node
uses: actions/setup-node@v4
- name: 🧪 Test
run: swift test

1
.gitignore vendored
View File

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

View File

@@ -130,7 +130,7 @@ public struct Hermes {
guard let result = try? JSONDecoder().decode(resource.modelType, from: data) else {
throw NetworkError.decodingError
}
return result
}
}