Correct activesupport usage (#1371) #172
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: Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
danger_and_rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: Rubocop | |
run: | | |
bundle exec rake rubocop | |
- name: Danger | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
bundle exec danger --verbose | |
spec: | |
runs-on: macos-13 | |
continue-on-error: true | |
strategy: | |
matrix: | |
spec: ["objc_spec", "swift_spec", "cocoapods_spec"] | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: Cache cocoapods | |
uses: actions/cache@v3 | |
env: | |
cache-name: cocoapods | |
with: | |
path: ~/.cocoapods | |
key: ${{ matrix.spec }}-${{ env.cache-name }} | |
- name: Test | |
run: | | |
bundle exec rake ${{ matrix.spec }} |