Skip to content

Commit

Permalink
[GHA] Introduce the first GitHub Action (#2760)
Browse files Browse the repository at this point in the history
# Motivation

We want to move our CI over to use GitHub Actions. We need to cover multiple different things like unit tests, benchmarks, soundness, API breaks, doc validation etc.

# Modification

This PR starts our journey to GitHub Actions by introducing the PR workflow. Right now this workflow only runs the Swift tests on our repository without any additional compiler flags like `-warnings-as-errors`. This aims to get us started and we will continue to modify them in subsequent PRs.

# Result

We got our first GH workflows running
  • Loading branch information
FranzBusch authored Jul 2, 2024
1 parent fc79798 commit 2f99bc3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Pull Request

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

## We are cancelling previously triggered workflow runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.ref }}
cancel-in-progress: true

jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
swift:
- image: swift5.8-jammy
- image: swift5.9-jammy
- image: swift5.10-noble
- image: swiftlang/swift:nightly-6.0-jammy
- image: swiftlang/swift:nightly-main-jammy
container:
image: ${{ matrix.swift.image }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run tests
run: swift test
timeout-minutes: 20

0 comments on commit 2f99bc3

Please sign in to comment.