Merge pull request #47 from shibapm/f-meloni-patch-1

Use GitHub Action for CI
This commit is contained in:
Franco Meloni 2021-12-25 21:14:13 +01:00 committed by GitHub
commit a856efc48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

27
.github/workflows/swift.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Swift
on:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
xcode: ["12.4", "12.5.1", "13.0"]
steps:
- uses: actions/checkout@v2
- name: Select Xcode
run: |
xcodebuild -version
ls -nt /Applications/ | grep "Xcode*"
sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app
xcodebuild -version
- name: Run tests
run: swift test
- name: Build
run: swift build --disable-sandbox -c release
- name: Create test release
run: ./.build/release/rocket 1.0.0 --rocket-file .test.yml