Merge pull request #109 from maxmind/nobeid/github-actions-zizmor #508
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '4 1 * * SUN' | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
version: | |
[ | |
'3.0', | |
3.1, | |
3.2, | |
3.3, | |
3.4, | |
jruby, | |
] | |
exclude: | |
- os: windows-latest | |
version: jruby | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
persist-credentials: false | |
# zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces. | |
# specify that we want the v1 branch. | |
- uses: ruby/setup-ruby@refs/heads/v1 | |
with: | |
ruby-version: ${{ matrix.version }} | |
- run: bundle install | |
- run: bundle exec rake -t spec |