Skip to content

Commit

Permalink
ci: setup github action to build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
alephao committed Jan 28, 2024
1 parent 79cbbb5 commit 333cacf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
name: Build and Test
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Select Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app
- name: Build
run: swift build
- name: Test
run: swift test --enable-code-coverage

0 comments on commit 333cacf

Please sign in to comment.