Skip to content

Commit

Permalink
(feat): Added Unit Tests & workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
N3v1 committed Jul 16, 2024
1 parent a9542ea commit df89cbb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Swift Unit Tests 🚀

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Swift
uses: fwal/setup-swift@v1.0.1
with:
swift-version: '6.0'

- name: Build and run tests
run: swift test --enable-test-discovery

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: test-results
path: .build/x86_64-apple-macosx/debug/test-results

0 comments on commit df89cbb

Please sign in to comment.