forked from the-benchmarker/web-frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (65 loc) · 1.85 KB
/
Copy pathci-language.yml
File metadata and controls
68 lines (65 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI language
on:
workflow_call:
inputs:
language:
required: true
type: string
files:
required: true
type: string
jobs:
matrix:
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0.7"
bundler-cache: true
- name: Install deps
run: bundle install --jobs 4 --retry 3
- name: Set framework and variant matrix
id: set-matrix
run: echo "matrix=$(bundle exec rake ci:matrix)" >> "$GITHUB_OUTPUT"
env:
FILES: ${{ inputs.files }}
LANGUAGE: ${{ inputs.language }}
test:
name: ${{ matrix.framework }} (${{ matrix.engine }})
needs: matrix
if: ${{ fromJson(needs.matrix.outputs.matrix).include[0] != null }}
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "4.0.7"
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: Run framework with retry
run: bash .github/scripts/run-framework-with-retry.sh
env:
DIRECTORY: ${{ matrix.directory }}
ENGINE: ${{ matrix.engine }}
MAX_ATTEMPTS: 2
COMMAND_TIMEOUT_SECONDS: 2700
RETRY_DELAY_SECONDS: 15
LANGUAGE: ${{ matrix.language }}
FRAMEWORK: ${{ matrix.framework }}