Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish

on:
release:
types: [ published ]
workflow_call:
workflow_dispatch:

jobs:
linting:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# Publish Documentation to GitHub pages.
#
name: Publish Documentation

on:
release:
types: [ published ]

# Allows running this workflow manually from the Actions tab
workflow_call:
workflow_dispatch:

jobs:
Expand All @@ -17,15 +17,15 @@ jobs:
- name: set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
ruby-version: "3.3"
bundler-cache: true

- name: Analyse the code with Rubocop
run: |
bundle exec rake doc

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Sync `documentation` directory to ReadMe
name: Publish Guide to readme.com

# Run workflow for every push to the `main` branch
on:
workflow_call:
workflow_dispatch:
release:
branches:
- main

jobs:
sync:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: Static Analysis

on:
- push
workflow_call:

jobs:
linting:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Test Code Samples

on:
pull_request:
schedule:
- cron: '0 0 * * *'

# Allow running this workflow manually from the Actions tab
workflow_call:
workflow_dispatch:

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
#
# Run Integration tests.
# Run integration tests.
#
name: Integration Tests

on:
- push
workflow_call:

jobs:
tests:
name: Test ${{ matrix.os }}, Ruby ${{ matrix.ruby }}
integration-tests:
name: Run Integration Tests
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os:
- "ubuntu-22.04"
- "ubuntu-24.04"
- "macos-latest"
ruby:
- "3.0"
- "3.1"
Expand Down Expand Up @@ -53,3 +56,13 @@ jobs:
WORKFLOW_ID: ${{ secrets.WORKFLOW_ID_SE_TESTS }}
run: |
bundle exec rake integration

- name: Notify Slack Action on Failure
uses: ravsamhq/notify-slack-action@2.3.0
if: ${{ always() && github.ref_name == 'main' }}
with:
status: ${{ job.status }}
notify_when: "failure"
notification_title: "[Ruby] Integration test '{workflow}' is failing"
env:
SLACK_WEBHOOK_URL: ${{ secrets.PRODUCTION_ISSUES_SLACK_HOOK_URL }}
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
name: Tests

on:
- push
workflow_call:

jobs:
tests:
name: Test ${{ matrix.os }}, Ruby ${{ matrix.ruby }}
name: Run Unit Tests
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- "ubuntu-24.04"
- "ubuntu-22.04"
- "ubuntu-20.04"
- "macos-latest"
ruby:
- "3.0"
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Crontab

on:
schedule:
- cron: '0 0 * * *'

jobs:
test_code_samples:
uses: mindee/mindee-api-ruby/.github/workflows/_test-code-samples.yml@main
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Release

on:
release:
types: [ published ]

jobs:
publish_docs:
uses: mindee/mindee-api-ruby/.github/workflows/_publish-docs.yml@main
secrets: inherit
publish_guide:
uses: mindee/mindee-api-ruby/.github/workflows/_publish-guide.yml@main
needs: publish_docs
secrets: inherit
publish_code:
uses: mindee/mindee-api-ruby/.github/workflows/_publish-code.yml@main
secrets: inherit
24 changes: 24 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pull Request

on:
pull_request:

jobs:
static_analysis:
uses: mindee/mindee-api-ruby/.github/workflows/_static-analysis.yml@main
test_units:
uses: mindee/mindee-api-ruby/.github/workflows/_test-units.yml@main
needs: static_analysis
secrets: inherit
test_regressions:
uses: mindee/mindee-api-ruby/.github/workflows/_test-regressions.yml@main
needs: test_units
secrets: inherit
test_integrations:
uses: mindee/mindee-api-ruby/.github/workflows/_test-integrations.yml@main
needs: test_units
secrets: inherit
test_code_samples:
uses: mindee/mindee-api-ruby/.github/workflows/_test-code-samples.yml@main
needs: test_units
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/push-main-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Push Main Branch

on:
push:
branches:
- main

jobs:
static_analysis:
uses: mindee/mindee-api-ruby/.github/workflows/_static-analysis.yml@main
test_units:
uses: mindee/mindee-api-ruby/.github/workflows/_test-units.yml@main
needs: static_analysis
secrets: inherit
tag:
uses: mindee/client-lib-actions/.github/workflows/tag-version.yml@main
needs: test_units