Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2527f31
commit 82deee8
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
destination: | ||
- "platform=macOS" | ||
- "platform=iOS Simulator,name=iPhone 11" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Test platform ${{ matrix.destination }} | ||
run: set -o pipefail && xcodebuild -scheme EditorConfig -destination "${{ matrix.destination }}" test | xcpretty | ||
linux-test: | ||
name: Test Linux | ||
runs-on: ubuntu-latest | ||
container: | ||
image: swift:latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Test | ||
run: swift test |