-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Showing
2 changed files
with
67 additions
and
129 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,67 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
test-on-macos: | ||
name: Test on macOS | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
xcode: [11.4, 12.3] | ||
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: Install danger-js | ||
run: brew install danger/tap/danger-js | ||
|
||
- run: swift test | ||
|
||
- run: swift run danger-swift ci --verbose | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
test-on-linux: | ||
name: Test on Linux | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
swift: [5.2.4, 5.3.3] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
|
||
- name: Install danger-js | ||
run: | | ||
yarn global add danger | ||
echo `yarn global bin` >> $GITHUB_PATH | ||
- uses: YOCKOW/Action-setup-swift@v1 | ||
with: | ||
swift-version: ${{ matrix.swift }} | ||
|
||
# - name: Install swiftenv | ||
# run: | | ||
# echo ${{ matrix.swift }} > .swift-version | ||
# eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" | ||
# swift --version | ||
|
||
- run: swift test | ||
|
||
- run: swift run danger-swift ci --verbose | ||
if: ${{ github.event_name == 'pull_request' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.