Skip to content

Commit

Permalink
ci: use GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Oct 16, 2023
1 parent 1d286d8 commit 71747c7
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 98 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: CI/CD

on:
push:
branches:
- 'refs/heads/*'
- '!refs/tags/*'
pull_request:
branches:
- '*'
paths:
- '*'
- '!README.md'
- '!LICENSE'
- '!CODE_OF_CONDUCT.md'
- '!CONTRIBUTING.md'
- '!website/**'

jobs:
danger-swiftlint:
name: Danger SwiftLint
continue-on-error: true
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Install SwiftLint and Danger Swift
run: |
brew install swiftlint
brew install danger/tap/danger-swift
export DANGER_GITHUB_API_TOKEN='${{ secrets.GH_TOKEN }}'
- name: Run Danger SwiftLint
run: danger-swift ci

pod-lint:
name: PodLint
needs: danger-swiftlint
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: Install CocoaPods
run: pod install

- name: Lint pod library
run: pod lib lint --skip-tests --platforms=macos,ios,tvos

build:
name: Build
needs: danger-swiftlint
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: Install CocoaPods
run: pod install

- name: Build Xcode App
uses: actions/xcode@v3
with:
actions: build
sdk: iphoneos
scheme: AppleReminders
configuration: Debug
xcWorkspacePath: Example/AppleReminders.xcworkspace
xcodeVersion: default

test:
name: Test
needs: build
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: Install CocoaPods
run: pod install

- name: Running tests
uses: actions/xcode@v3
with:
actions: test
sdk: iphonesimulator
configuration: Debug
xcWorkspacePath: Tests/Tests.xcworkspace
scheme: Tests
xcodeVersion: default

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
98 changes: 0 additions & 98 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 71747c7

Please sign in to comment.