Prepare isExpired to pass a margin for slower scenarios #108
Workflow file for this run
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
name: "build-and-tests" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
build: | |
name: Check build & tests | |
runs-on: apps-ci | |
timeout-minutes: 120 | |
steps: | |
- name: Remove any previous hook π₯Έ | |
run: rm -rf .git/hooks | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Cache for Gems π | |
uses: actions/cache@v3 | |
with: | |
path: | | |
.gems | |
~/.bundle | |
key: ${{ runner.os }}-cache-gems-${{ hashFiles('**/Gemfile.lock') }} | |
- name: Rake βοΈ | |
run: arch -arm64 rake | |
- name: Run iOS tests βοΈ | |
run: arch -arm64 bundle exec fastlane test_scheme scheme:Mini-iOS configuration:Debug name:iOS | |
- name: Upload coverage for iOS to Codecov π | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
xcode: true | |
xcode_archive_path: ./output/iOS/Mini-iOS.xcresult | |
flags: ios | |
fail_ci_if_error: true | |
name: codecov-ios | |
gcov_ignore: Tests/* | |
- name: Run tvOS tests βοΈ | |
run: arch -arm64 bundle exec fastlane test_scheme scheme:Mini-tvOS configuration:Debug name:tv | |
- name: Upload coverage for tvOS to Codecov π | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
xcode: true | |
xcode_archive_path: ./output/tv/Mini-tvOS.xcresult | |
flags: tv | |
fail_ci_if_error: true | |
name: codecov-tv | |
gcov_ignore: Tests/* | |
- name: Run mac tests βοΈ | |
run: arch -arm64 bundle exec fastlane test_scheme scheme:Mini-macOS configuration:Debug name:mac | |
- name: Upload coverage for mac to Codecov π | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
xcode: true | |
xcode_archive_path: ./output/mac/Mini-macOS.xcresult | |
flags: mac | |
fail_ci_if_error: true | |
name: codecov-mac | |
gcov_ignore: Tests/* | |
- name: Danger π¨ | |
run: bundle exec danger | |
if: github.event_name == 'pull_request' | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.THORBOT_GITHUB_API_TOKEN }} | |
- name: Save Output π¦ | |
uses: actions/upload-artifact@v3 | |
with: | |
name: output | |
path: ${{ github.workspace }}/output |