From 2cc62295196a5e4bc3d34de557b298e0ad70e545 Mon Sep 17 00:00:00 2001 From: Jeffrey Lau Date: Thu, 21 Nov 2024 04:13:05 +0800 Subject: [PATCH] ci(test): Copy metanorma/ci --- .github/workflows/test.yaml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e34080b..00749e5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,15 +17,36 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + concurrency: + group: '${{ github.workflow }}-${{ matrix.os }}-${{ matrix.ruby.version }}-${{ github.head_ref || github.ref_name }}' + cancel-in-progress: true + strategy: + fail-fast: false + max-parallel: 5 matrix: - ruby-version: ['3.4', '3.3', '3.2', '3.1'] + os: + - "macos-latest" + - "ubuntu-latest" + - "windows-latest" + ruby: + - version: '3.4' + experimental: true + - version: '3.3' + experimental: false + - version: '3.2' + experimental: false + - version: '3.1' + experimental: false + continue-on-error: ${{ matrix.ruby.experimental }} + steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: ${{ matrix.ruby-version }} + ruby-version: ${{ matrix.ruby.version }} bundler-cache: true - name: Install dependencies run: bundle install