Skip to content

Commit

Permalink
chore: Reduce matrix size for faster CI runs
Browse files Browse the repository at this point in the history
- Remove warnings by specifying ubuntu-22.04 instead of ubuntu-latest.
- Remove JRuby tests entirely.
- Remove macOS tests entirely.
- Remove Ruby tests on ubuntu 20 and 24 for now.

Signed-off-by: Austin Ziegler <[email protected]>
  • Loading branch information
halostatue committed Dec 31, 2024
1 parent 2402e2c commit 9103a6d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 101 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dco-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
jobs:
check-dco:
name: Check DCO
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
dependabot-automerge:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
contents: write
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
misspell:
if: ${{ github.event.action != 'closed' }}
name: Typos
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
contents: read
Expand All @@ -23,7 +23,7 @@ jobs:
actionlint:
if: ${{ github.event.action != 'closed' }}
name: Actionlint
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
contents: read
Expand All @@ -39,7 +39,7 @@ jobs:
biome:
if: ${{ github.event.action != 'closed' }}
name: 'Typescript: Biome'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
contents: read
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
standardrb:
if: ${{ github.event.action != 'closed' }}
name: 'Ruby: Standard'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
contents: read
Expand All @@ -96,7 +96,7 @@ jobs:
credo:
if: ${{ github.event.action != 'closed' }}
name: 'Elixir: Credo'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

permissions:
contents: read
Expand Down
94 changes: 2 additions & 92 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
jobs:
lint:
name: Ruby Lint
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -42,9 +42,7 @@ jobs:
- rack_2
- rack_3
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
ruby:
- '2.7'
- '3.0'
Expand Down Expand Up @@ -78,52 +76,6 @@ jobs:
bundle exec bin/app-identity-suite-ruby run --stdin --strict
working-directory: ./ruby
required-macos:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }} - ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
gemfile:
- rack_1
- rack_2
- rack_3
os:
- macos-13
- macos-14
- macos-15
ruby:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- '3.4'

runs-on: ${{ matrix.os }}

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/ruby/gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/[email protected]
with:
persist-credentials: false

- uses: ruby/[email protected]
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: ./ruby

- run: bundle exec ruby -S rake test --trace
working-directory: ./ruby

- run: >
bundle exec bin/app-identity-suite-ruby generate --stdout |
bundle exec bin/app-identity-suite-ruby run --stdin --strict
working-directory: ./ruby
ruby-head-optional:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }} - ${{ matrix.os }} (optional)

Expand All @@ -137,49 +89,7 @@ jobs:
ruby:
- head
os:
- macos-latest
- ubuntu-latest

continue-on-error: true
runs-on: ${{ matrix.os }}

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/ruby/gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/[email protected]
with:
persist-credentials: false

- uses: ruby/[email protected]
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: ./ruby

- run: bundle exec ruby -S rake test --trace
working-directory: ./ruby

- run: >
bundle exec bin/app-identity-suite-ruby generate --stdout |
bundle exec bin/app-identity-suite-ruby run --stdin --strict
working-directory: ./ruby
jruby-optional:
name: Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }} - ${{ matrix.os }} (optional)

strategy:
fail-fast: false
matrix:
gemfile:
- rack_1
- rack_2
- rack_3
ruby:
- jruby
- jruby-head
os:
- ubuntu-latest
- ubuntu-22.04

continue-on-error: true
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: true
matrix:
os:
- ubuntu-latest
- ubuntu-22.04
node:
- 20
- 22
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
zizmor:
name: zizmor latest via Cargo
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
security-events: write
# required for workflows in private repositories
Expand Down

0 comments on commit 9103a6d

Please sign in to comment.