Skip to content

Commit

Permalink
Merge pull request #1 from glbrntt/add-ci
Browse files Browse the repository at this point in the history
Add CI workflow
  • Loading branch information
glbrntt authored Sep 20, 2024
2 parents bd58bb0 + 440a117 commit d338222
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on:
pull_request:
branches: [main]
jobs:
preflight:
name: License Header and Formatting Checks
runs-on: ubuntu-latest
container:
image: swift:6.0-jammy
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: Mark the workspace as safe
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: "Formatting, License Headers, and Generated Code check"
run: |
./dev/sanity.sh
unit-tests:
strategy:
fail-fast: false
matrix:
include:
- image: swiftlang/swift:nightly-jammy
- image: swift:6.0-jammy
name: Build and Test on ${{ matrix.image }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4
- name: 🔧 Build
run: swift build ${{ matrix.swift-build-flags }}
timeout-minutes: 20
- name: 🧪 Test
run: swift test ${{ matrix.swift-test-flags }}
timeout-minutes: 20

0 comments on commit d338222

Please sign in to comment.