Skip to content

Test on JRuby 9.4 and 10.0 #2

Test on JRuby 9.4 and 10.0

Test on JRuby 9.4 and 10.0 #2

Workflow file for this run

name: Test Nix
on: # yamllint disable-line rule:truthy
push:
branches:
- master
pull_request:
branches:
- master
# Default permissions for all jobs
permissions: {}
jobs:
test:
strategy:
fail-fast: false
matrix:
platform:
- os: darwin
cpu: arm64
base: macos-15 # always arm64-darwin
- os: linux
cpu: x86_64
base: ubuntu-24.04 # always x86_64-linux-gnu
- os: linux
cpu: aarch64
base: ubuntu-24.04-arm # always aarch64-linux-gnu
nix:
- 24.05
name: Test Nix (${{ matrix.platform.cpu }}-${{ matrix.platform.os }}, ${{ matrix.nix }})
runs-on: ${{ matrix.platform.base }}
permissions:
contents: read
id-token: write
env:
SKIP_SIMPLECOV: 1
DD_INSTRUMENTATION_TELEMETRY_ENABLED: false
DD_REMOTE_CONFIGURATION_ENABLED: false
BUNDLE_GEMFILE: gemfiles/ruby-4.0.gemfile
BUNDLE_FROZEN: "true"
steps:
- name: Check CPU arch
run: |
test "$(uname -m)" = "${{ matrix.platform.cpu }}"
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: cachix/install-nix-action@630ae543ea3a38a9a4166f03376c02c50f408342 # v31.11.0
- name: Print ruby version
run: |
nix develop --command which ruby
nix develop --command ruby --version
- name: Bundle install
run: nix develop --command bundle install
- name: Run spec:main
run: nix develop --command bundle exec rake spec:main
complete:
name: Nix (complete)
runs-on: ubuntu-24.04
needs:
- test
steps:
- run: echo "DONE!"