Skip to content

Commit

Permalink
Split workflows to fix branch requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Sep 4, 2023
1 parent bce8b82 commit b7fdee3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 41 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cocoapods-validations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CocoaPods Validation

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8

jobs:
validate-cocoapods:
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ^14.3
- uses: actions/checkout@v3
- name: Generate Podspec
run: ./Scripts/generate-podspec.sh
- name: Validate Pod
run: pod lib lint
23 changes: 23 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Danger

on:
pull_request_target:
branches: [ master ]

env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8

jobs:
run-danger:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: danger/swift
uses: docker://ghcr.io/danger/danger-swift-with-swiftlint:3.15.0
with:
args: --failOnErrors --no-publish-check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41 changes: 0 additions & 41 deletions .github/workflows/validations.yml

This file was deleted.

0 comments on commit b7fdee3

Please sign in to comment.