From c93404e63c8fe3fb4e6118ddd9b170de44a09192 Mon Sep 17 00:00:00 2001 From: Gleb Linnik Date: Tue, 21 May 2024 23:57:33 +0300 Subject: [PATCH] Run actions on `master` with schedule (#487) * Add new rules * Increase timeout limit for cocoapods --- .github/workflows/cocoapods-lint.yml | 13 ++++++++++++- .github/workflows/unit-tests.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cocoapods-lint.yml b/.github/workflows/cocoapods-lint.yml index 9918e3723..142d19e81 100644 --- a/.github/workflows/cocoapods-lint.yml +++ b/.github/workflows/cocoapods-lint.yml @@ -2,6 +2,17 @@ name: CocoaPods Lint on: pull_request: + paths: + - 'Sources/**' + - 'KSCrash.podspec' + - '.github/workflows/cocoapods-lint.yml' + + push: + branches: + - master + + schedule: + - cron: '0 0 1 * *' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -10,7 +21,7 @@ concurrency: jobs: lint: runs-on: macos-latest - timeout-minutes: 10 + timeout-minutes: 15 strategy: fail-fast: false matrix: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 1838c8661..81c0f4dcc 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -2,6 +2,18 @@ name: Run Unit Tests on: pull_request: + paths: + - 'Sources/**' + - 'Package.swift' + - '.github/workflows/unit-tests.yml' + - '.swiftpm/xcode/xcshareddata/xcschemes/**' + + push: + branches: + - master + + schedule: + - cron: '0 0 1 * *' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}