Skip to content

Commit

Permalink
Switch to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lunij committed Feb 28, 2021
1 parent 2caf343 commit ba38564
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 129 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
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 }}
129 changes: 0 additions & 129 deletions .travis.yml

This file was deleted.

0 comments on commit ba38564

Please sign in to comment.