File tree Expand file tree Collapse file tree 11 files changed +100
-27
lines changed
Expand file tree Collapse file tree 11 files changed +100
-27
lines changed Original file line number Diff line number Diff line change 11name : Publish
22
33on :
4- release :
5- types : [ published ]
4+ workflow_call :
5+ workflow_dispatch :
66
77jobs :
88 linting :
Original file line number Diff line number Diff line change 1+ #
2+ # Publish Documentation to GitHub pages.
3+ #
14name : Publish Documentation
25
36on :
4- release :
5- types : [ published ]
6-
7- # Allows running this workflow manually from the Actions tab
7+ workflow_call :
88 workflow_dispatch :
99
1010jobs :
2525 bundle exec rake doc
2626
2727 - name : Deploy
28- uses : peaceiris/actions-gh-pages@v3
28+ uses : peaceiris/actions-gh-pages@v4
2929 with :
3030 github_token : ${{ secrets.GITHUB_TOKEN }}
3131 publish_dir : ./docs/_build
Original file line number Diff line number Diff line change 1- name : Sync `documentation` directory to ReadMe
1+ name : Publish Guide to readme.com
22
3- # Run workflow for every push to the `main` branch
43on :
4+ workflow_call :
55 workflow_dispatch :
6- release :
7- branches :
8- - main
96
107jobs :
118 sync :
Original file line number Diff line number Diff line change 44name : Static Analysis
55
66on :
7- - push
7+ workflow_call :
88
99jobs :
1010 linting :
Original file line number Diff line number Diff line change 11name : Test Code Samples
22
33on :
4- pull_request :
5- schedule :
6- - cron : ' 0 0 * * *'
7-
8- # Allow running this workflow manually from the Actions tab
4+ workflow_call :
95 workflow_dispatch :
106
117jobs :
Original file line number Diff line number Diff line change 11#
2- # Run Integration tests.
2+ # Run integration tests.
33#
44name : Integration Tests
55
66on :
7- - push
7+ workflow_call :
88
99jobs :
10- tests :
11- name : Test ${{ matrix.os }}, Ruby ${{ matrix.ruby }}
10+ integration-tests :
11+ name : Run Integration Tests
12+ timeout-minutes : 30
1213 runs-on : ${{ matrix.os }}
1314 strategy :
15+ max-parallel : 3
1416 matrix :
1517 os :
16- - " ubuntu-22.04"
18+ - " ubuntu-24.04"
19+ - " macos-latest"
1720 ruby :
1821 - " 2.6"
1922 - " 2.7"
2023 - " 3.0"
2124 - " 3.1"
2225 - " 3.2"
26+ - " 3.3"
2327 steps :
2428 - uses : actions/checkout@v4
2529 with :
5458 WORKFLOW_ID : ${{ secrets.WORKFLOW_ID_SE_TESTS }}
5559 run : |
5660 bundle exec rake integration
61+
62+ - name : Notify Slack Action on Failure
63+ uses : ravsamhq/notify-slack-action@2.3.0
64+ if : ${{ always() && github.ref_name == 'main' }}
65+ with :
66+ status : ${{ job.status }}
67+ notify_when : " failure"
68+ notification_title : " [Ruby] Integration test '{workflow}' is failing"
69+ env :
70+ SLACK_WEBHOOK_URL : ${{ secrets.PRODUCTION_ISSUES_SLACK_HOOK_URL }}
Original file line number Diff line number Diff line change 44name : Tests
55
66on :
7- - push
7+ workflow_call :
88
99jobs :
1010 tests :
11- name : Test ${{ matrix.os }}, Ruby ${{ matrix.ruby }}
11+ name : Run Unit Tests
12+ timeout-minutes : 30
1213 runs-on : ${{ matrix.os }}
1314 strategy :
1415 matrix :
1516 os :
17+ - " ubuntu-24.04"
1618 - " ubuntu-22.04"
17- - " ubuntu-20.04"
1819 - " macos-latest"
1920 ruby :
2021 - " 2.6"
2122 - " 2.7"
2223 - " 3.0"
2324 - " 3.1"
2425 - " 3.2"
26+ - " 3.3"
2527 steps :
2628 - uses : actions/checkout@v4
2729 with :
3739 if : runner.os == 'Linux'
3840 run : |
3941 sudo apt update
40- sudo apt-get install -y ghostscript
42+ sudo apt-get install -y ghostscript imagemagick
4143
4244 - name : Install Ghostscript and ImageMagick on macOS
4345 if : runner.os == 'macOS'
Original file line number Diff line number Diff line change 1+ name : Crontab
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 0 * * *'
6+
7+ jobs :
8+ test_code_samples :
9+ uses : mindee/mindee-api-ruby/.github/workflows/_test-code-samples.yml@main
10+ secrets : inherit
Original file line number Diff line number Diff line change 1+ name : Publish Release
2+
3+ on :
4+ release :
5+ types : [ published ]
6+
7+ jobs :
8+ publish_docs :
9+ uses : mindee/mindee-api-ruby/.github/workflows/_publish-docs.yml@main
10+ secrets : inherit
11+ publish_guide :
12+ uses : mindee/mindee-api-ruby/.github/workflows/_publish-guide.yml@main
13+ needs : publish_docs
14+ secrets : inherit
15+ publish_code :
16+ uses : mindee/mindee-api-ruby/.github/workflows/_publish-code.yml@main
17+ secrets : inherit
Original file line number Diff line number Diff line change 1+ name : Pull Request
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ static_analysis :
8+ uses : mindee/mindee-api-ruby/.github/workflows/_static-analysis.yml@main
9+ test_units :
10+ uses : mindee/mindee-api-ruby/.github/workflows/_test-units.yml@main
11+ needs : static_analysis
12+ secrets : inherit
13+ test_integrations :
14+ uses : mindee/mindee-api-ruby/.github/workflows/_test-integrations.yml@main
15+ needs : test_units
16+ secrets : inherit
17+ test_code_samples :
18+ uses : mindee/mindee-api-ruby/.github/workflows/_test-code-samples.yml@main
19+ needs : test_units
20+ secrets : inherit
You can’t perform that action at this time.
0 commit comments