Simplified configuration for hleb2 #9111
This file contains hidden or 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: CI | |
on: | |
- pull_request | |
jobs: | |
matrix: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
fetch-depth: 0 | |
- id: file_changes | |
uses: trilom/[email protected] | |
- uses: actions/checkout@v5 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.4" | |
bundler-cache: true | |
- name: Install deps | |
run: bundle install --jobs 4 --retry 3 | |
- id: set-matrix | |
run: echo "matrix=$(bundle exec rake ci:matrix)" >> "$GITHUB_OUTPUT" | |
env: | |
FILES: ${{ steps.file_changes.outputs.files }} | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
test: | |
needs: matrix | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: ${{fromJson(needs.matrix.outputs.matrix)}} | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.4" | |
bundler-cache: true | |
- name: Install deps | |
run: bundle install --jobs 4 --retry 3 | |
- name: Docker version | |
run: docker -v | |
- name: Configure | |
run: bundle exec rake config | |
- name: Build | |
run: | | |
make "build" -f "${DIRECTORY}/.Makefile" | |
env: | |
DIRECTORY: ${{ matrix.directory }} | |
ENGINE: ${{ matrix.engine }} | |
- name: Wait | |
run: sleep 120 | |
- name: Test | |
run: bundle exec rspec .spec | |
env: | |
LANGUAGE: ${{ matrix.language }} | |
FRAMEWORK: ${{ matrix.framework }} | |
ENGINE: ${{ matrix.engine }} |