File tree Expand file tree Collapse file tree 4 files changed +33
-1
lines changed
Expand file tree Collapse file tree 4 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ workflow_call :
5+
6+ jobs :
7+ test :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v5
11+ - run : docker compose up -d --wait db
12+ - uses : sorah-rbpkg/actions@v2
13+ with :
14+ ruby-version-file : .ruby-version
15+ bundler-cache : true
16+ - run : bundle exec rspec -f j -o tmp/rspec_results.json -f d spec
17+ - uses : SonicGarden/rspec-report-action@v6
18+ if : always()
19+ with :
20+ json-path : tmp/rspec_results.json
Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - master
6+ - main
67 - test
78
89jobs :
10+ test :
11+ uses : ./.github/workflows/_test.yml
912 build :
1013 name : build
1114 permissions :
4649 tags : " ${{ steps.login-ecr.outputs.registry }}/sponsor-app:${{ github.sha }},${{ steps.login-ecr.outputs.registry }}/sponsor-app:latest"
4750
4851 deploy-prod :
49- if : " ${{ success() && github.event_name == 'push' }}"
52+ if : " ${{ success() && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') }}"
5053 name : deploy-prod
5154 needs : ["build"]
5255 permissions :
Original file line number Diff line number Diff line change 1+ name : pr
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ test :
8+ uses : ./.github/workflows/_test.yml
Original file line number Diff line number Diff line change 1+ 3.2
You can’t perform that action at this time.
0 commit comments