From ce979c706de58b5d7c00fd9945564e94181eda0b Mon Sep 17 00:00:00 2001 From: Eitaro Fukamachi Date: Mon, 1 Jun 2020 11:50:58 +0900 Subject: [PATCH 1/2] Run CI on GitHub Actions. --- .github/workflows/ci.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3568ecf --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,31 @@ +name: CI + +on: [push, pull_request] + +jobs: + podspec: + runs-on: macos-latest + name: CocoaPods Lint + env: + DEVELOPER_DIR: "/Applications/Xcode_11.4.1.app" + steps: + - uses: actions/checkout@v2 + - run: pod lib lint + + test: + runs-on: macos-latest + strategy: + matrix: + xcode: [10.3, 11.3.1, 11.4.1] + fail-fast: false + name: Xcode ${{ matrix.xcode }} + env: + DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app" + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: carthage update --platform iOS + - name: Run tests + run: | + set -o pipefail + xcodebuild build-for-testing test-without-building -project Pokepay.xcodeproj -scheme Pokepay-Package -destination 'name=iPhone 8' | xcpretty -c From 6f6e94e4c7d7562d8837eb0d31e709b7a12b3535 Mon Sep 17 00:00:00 2001 From: Eitaro Fukamachi Date: Mon, 1 Jun 2020 12:31:36 +0900 Subject: [PATCH 2/2] Run CI on push only when pushing to the 'master' branch. --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3568ecf..f65e43a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request] +on: + push: + branches: [master] + pull_request: + paths: ['*'] jobs: podspec: