Skip to content

Commit

Permalink
added basic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sliemeobn committed Mar 11, 2024
1 parent 42203e8 commit 760ef0f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

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

jobs:
ci:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build
run: swift build --build-tests

- name: Run Tests
run: swift test

0 comments on commit 760ef0f

Please sign in to comment.