-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 978 Bytes
/
main.yml
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
name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
selective:
runs-on: ubuntu-latest
name: Selective
strategy:
fail-fast: false
matrix:
ci_node_total: [4]
ci_node_index: [0, 1, 2, 3]
env:
SELECTIVE_API_KEY: ${{ secrets.SELECTIVE_API_KEY }}
SELECTIVE_RUN_ID: ${{ github.run_id }}
SELECTIVE_RUN_ATTEMPT: ${{ github.run_attempt }}
PR_TITLE: ${{ github.event.pull_request.title }}
SELECTIVE_RUNNER_ID: ${{ matrix.ci_node_index }}
CLONE_PAT: ${{ secrets.CLONE_PAT }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
bundler-cache: true
- name: Run the default task
run: bundle exec selective rspec
- name: Store logs
if: always()
uses: actions/upload-artifact@v3
with:
name: logs
path: ./log/*.log