chore: update actions versions #32
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: GitHub Actions CI | |
on: [push] | |
jobs: | |
pod-lint: | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Cache CocoaPods data | |
uses: actions/cache@v3 | |
with: | |
path: Example/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Run pod lib lint | |
run: | | |
bundle install | |
bundle exec fastlane lint | |
unit-tests: | |
runs-on: macos-latest | |
needs: pod-lint | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Cache CocoaPods data | |
uses: actions/cache@v3 | |
with: | |
path: Example/Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Run the unit tests | |
run: | | |
bundle install | |
bundle exec fastlane test |