-
-
Notifications
You must be signed in to change notification settings - Fork 1
94 lines (94 loc) · 2.87 KB
/
ruby-test.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Ruby 🔻💎🔻 Tests 🦂
on:
push:
branches-ignore:
- 'main'
paths:
- 'ruby/**'
- '!ruby/**.md'
- '!ruby/.vscode/**'
- '.github/workflows/ruby-*'
pull_request:
branches:
- 'main'
paths:
- 'ruby/**'
- '!ruby/**.md'
- '!ruby/.vscode/**'
- '.github/workflows/ruby-*'
schedule: # 9AM on the 15th
- cron: 0 22 14 1,2,3,10,11,12 * # AEDT Months
- cron: 0 23 14 4,5,6,7,8,9 * # AEST Months
workflow_call:
permissions: {}
defaults:
run:
shell: bash
working-directory: ruby
jobs:
quick-test:
name: Ruby 🔻💎🔻 Quick Test 🦂
if: ${{ github.event_name == 'push' && !(github.event.ref == 'refs/heads/main') }}
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 🔻💎🔻 Set up Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
ruby-version: '2.7'
bundler-cache: true
- name: 🧱 Install build dependencies
run: make setup
- name: 🦂 Test
run: make test
full-test:
name: Ruby 🔻💎🔻 Full Test 🦂
if: >-
${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.event.ref == 'refs/heads/main') }}
runs-on: '${{ matrix.os }}'
strategy:
fail-fast: false
matrix:
version: ['2.7.0', '3.0', '3.1']
os: [ubuntu-latest, macOS-12, windows-latest] # # < maybe.
steps:
- name: 🏁 Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 🔻💎🔻 Set up Ruby ${{ matrix.version }}
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
ruby-version: ${{ matrix.version }}
bundler-cache: true
- name: 🧱 Install build dependencies
run: make setup
- name: 🦂 Test
run: make test
codeql:
name: Ruby 🔻💎🔻 CodeQL 🛡👨💻🛡
if: >-
${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' ||
(github.event_name == 'push' && github.event.ref == 'refs/heads/main') }}
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/github-codeql.yaml
with:
language: 'ruby'
docs:
name: Ruby 🔻💎🔻 Docs 📄 Quick Test 🦂
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 🔻💎🔻 Set up Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
ruby-version: '2.7'
bundler-cache: true
- name: 🧱 Install build dependencies
run: make setup
- name: 📄 Docs
run: make docs