Refactor generator options parsing in mrb_yyjson.c #46
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
- name: Run RuboCop | |
run: | | |
bundle install | |
bundle exec rubocop | |
test: | |
needs: lint | |
strategy: | |
matrix: | |
runs-on: [ubuntu-latest, macos-14, windows-latest] | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
- name: Run build and tests | |
run: rake all test | |
- name: Memory Leak Check | |
if: matrix.runs-on == 'ubuntu-latest' | |
run: | | |
sudo apt-get update && sudo apt-get install -y valgrind | |
rake test:memcheck |