-
Notifications
You must be signed in to change notification settings - Fork 0
Update ci workflow feb2026 #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,80 +2,83 @@ name: CI | |
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }}-${{ github.event.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| BUNDLE_WITHOUT: production | ||
| CI: true | ||
| RAILS_ENV: test | ||
| POSTGRES_USER: root | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: password | ||
| SECRET_KEY_BASE: '123' # Dummy value for tests | ||
|
|
||
| jobs: | ||
| compile_assets: | ||
| name: Compile assets | ||
| project-stats: | ||
| name: Project Stats | ||
| runs-on: blacksmith-4vcpu-ubuntu-2404 | ||
| timeout-minutes: 5 | ||
| outputs: | ||
| cache-hit: ${{ steps.check-asset-cache.outputs.cache-hit }} | ||
| timeout-minutes: 3 | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v6 | ||
| - uses: RoleModel/actions/project-stats@v3 | ||
|
|
||
| - uses: RoleModel/actions/compile-assets@v2 | ||
| compile-assets: | ||
| name: Compile Assets | ||
| runs-on: blacksmith-4vcpu-ubuntu-2404 | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: RoleModel/actions/compile-assets@v3 | ||
| id: check-asset-cache | ||
|
|
||
| non-system-test: | ||
| name: Linting & Ruby Non-System Tests | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| name: Linting, Security, & Ruby Tests | ||
| runs-on: blacksmith-4vcpu-ubuntu-2404 | ||
| timeout-minutes: 5 | ||
| needs: compile_assets | ||
| if: always() && (needs.compile_assets.outputs.cache-hit == 'true' || (needs.compile_assets.result == 'success')) | ||
|
|
||
| services: | ||
| postgres: | ||
| image: postgres:17 | ||
| ports: | ||
| - "5432:5432" | ||
| env: | ||
| POSTGRES_USER: root | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: password | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v6 | ||
| - uses: ruby/setup-ruby@v1 | ||
| with: | ||
| bundler-cache: true | ||
|
|
||
| - name: Run shared flow | ||
| uses: RoleModel/actions/linting-and-non-system-tests@v2 | ||
| - run: bin/bundler-audit | ||
| - run: bin/brakeman --quiet --no-pager --exit-on-warn --exit-on-error | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure this will work for every repo? I guess people can remove it if they don't have brakeman installed...? |
||
|
|
||
| - uses: RoleModel/actions/linting-and-non-system-tests@v3 | ||
| with: | ||
| needs-compiled-assets: false | ||
| linting_step_required: true | ||
| linting_step_command: bundle exec rubocop --format github | ||
|
|
||
| system-test: | ||
| name: Ruby System Tests | ||
| runs-on: blacksmith-16vcpu-ubuntu-2404 | ||
| name: System Tests | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| timeout-minutes: 10 | ||
| if: always() && (needs.compile_assets.outputs.cache-hit == 'true' || (needs.compile_assets.result == 'success')) | ||
| needs: compile_assets | ||
| needs: compile-assets | ||
|
|
||
| services: | ||
| postgres: | ||
| image: postgres:17 | ||
| ports: | ||
| - "5432:5432" | ||
| env: | ||
| POSTGRES_USER: root | ||
| POSTGRES_USER: postgres | ||
| POSTGRES_PASSWORD: password | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup vips | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we ever (often?) need vips? Should we leave this in but commented out, for those who need it? |
||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y libvips | ||
|
|
||
| - name: Run shared flow | ||
| uses: RoleModel/actions/system-tests@v2 | ||
|
|
||
| - uses: actions/checkout@v6 | ||
| - uses: RoleModel/actions/system-tests@v3 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| PATH | ||
| remote: . | ||
| specs: | ||
| rolemodel_rails (0.26.0) | ||
| rolemodel_rails (0.26.1) | ||
| rails (> 7.1) | ||
|
|
||
| GEM | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| PATH | ||
| remote: .. | ||
| specs: | ||
| rolemodel_rails (0.26.0) | ||
| rolemodel_rails (0.26.1) | ||
| rails (> 7.1) | ||
|
|
||
| GEM | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| module RolemodelRails | ||
| VERSION = '0.26.0' | ||
| VERSION = '0.26.1' | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mainto always build (not cancel later pushes). If so, thecancel-in-progresssuggestion below allows it to only cancel from later pushes on the same PR.