Add more actions #124
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: Test | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Automated Code Review | |
runs-on: macos-12 | |
timeout-minutes: 10 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
PR_NUMBER: ${{ github.event.number }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Cache RubyGems | |
uses: actions/cache@v3 | |
id: rubygem-cache | |
with: | |
path: vendor/bundle | |
key: ${{ env.IMAGE }}-gem-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: ${{ env.IMAGE }}-gem- | |
- run: bundle install | |
- run: brew install sonar-scanner | |
- run: bundle exec fastlane code_review | |
- run: bundle exec fastlane sonar_upload |