File tree Expand file tree Collapse file tree 4 files changed +30
-1
lines changed
Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ jobs :
4+ test :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v5
8+ - run : docker compose up -d --wait db
9+ - uses : sorah-rbpkg/actions@v2
10+ with :
11+ ruby-version-file : .ruby-version
12+ bundler-cache : true
13+ - run : bundle exec rspec -f j -o tmp/rspec_results.json -f d spec
14+ - uses : SonicGarden/rspec-report-action@v6
15+ if : always()
16+ with :
17+ 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