.github/workflows/test.yaml in lrama-0.6.11 vs .github/workflows/test.yaml in lrama-0.7.0

- old
+ new

@@ -14,11 +14,11 @@ engine: cruby min_version: 2.5 test: needs: ruby-versions - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} steps: @@ -52,13 +52,32 @@ install: >- flex - run: flex --help - run: bundle install - run: bundle exec rspec + test-c: + needs: ruby-versions + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + ruby: ['head'] + compiler: ['cc', 'gcc', 'clang'] + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - run: flex --help + - run: bundle install + - run: bundle exec rspec + env: + COMPILER: ${{ matrix.compiler }} test-cpp: needs: ruby-versions - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: ruby: ['head'] compiler: ['g++', 'clang++'] @@ -72,11 +91,11 @@ - run: bundle install - run: bundle exec rspec env: COMPILER: ${{ matrix.compiler }} test-memory: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: ruby: ['head'] steps: @@ -92,11 +111,11 @@ - run: bundle install - run: bundle exec rspec spec/lrama/integration_spec.rb env: ENABEL_VALGRIND: 'true' check-misc: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: matrix: ruby: ['head'] steps: - uses: actions/checkout@v4 @@ -120,11 +139,11 @@ - name: Check for parser.rb is up to date run: | bundle exec rake build:parser git diff --color --no-ext-diff --ignore-submodules --exit-code lib/lrama/parser.rb steep-check: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: ruby: ['head'] env: @@ -134,14 +153,23 @@ - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - run: bundle install + - run: bundle exec rbs-inline --output lib/ + - name: Check for uncommitted changes + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "Uncommitted changes detected after running rbs-inline." + echo "Please run 'bundle rake rbs_inline' and commit the changes generated by rbs-inline." >&2 + exit 1 + fi + shell: bash - run: bundle exec rbs collection install - run: bundle exec steep check test-ruby: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: # '3.0' is the oldest living ruby version and minimal BASERUBY version baseruby: ['head', '3.0'] @@ -182,10 +210,10 @@ zlib1g-dev${arch} libncurses5-dev${arch} libffi-dev${arch} \ autoconf sudo apt-get install -q -y pkg-config${arch} || : - run: sudo apt-get --purge remove bison - run: ../autogen.sh - - run: ../configure -C --disable-install-doc + - run: ../configure -C --disable-install-doc --with-parser=parse.y - run: make - run: make test-all RUN_OPTS="$RUN_OPTS" SPECOPTS="$SPECOPTS" env: EXCLUDES: '../test/.excludes-parsey' RUN_OPTS: ${{ matrix.run_opts || '--parser=parse.y' }}