Skip to content

Commit 82b0d42

Browse files
authored
self hosted runners (#595)
1 parent ba8682e commit 82b0d42

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ on:
1212

1313
jobs:
1414
v2_4-non-rails-coditsu:
15-
runs-on: ubuntu-latest
15+
runs-on: >-
16+
${{
17+
(github.event_name != 'pull_request' ||
18+
github.event.pull_request.head.repo.full_name == github.repository)
19+
&& fromJSON('["self-hosted", "linux", "x64", "qemu"]')
20+
|| 'ubuntu-latest'
21+
}}
22+
1623
strategy:
1724
fail-fast: false
1825
steps:
@@ -31,7 +38,14 @@ jobs:
3138
\curl -sSL https://api.coditsu.io/run/ci | bash
3239
3340
v2_4-non-rails-specs:
34-
runs-on: ubuntu-latest
41+
runs-on: >-
42+
${{
43+
(github.event_name != 'pull_request' ||
44+
github.event.pull_request.head.repo.full_name == github.repository)
45+
&& fromJSON('["self-hosted", "linux", "x64", "qemu"]')
46+
|| 'ubuntu-latest'
47+
}}
48+
3549
strategy:
3650
fail-fast: false
3751
matrix:
@@ -71,7 +85,14 @@ jobs:
7185
bundle exec rspec
7286
7387
v2_4-rails-coditsu:
74-
runs-on: ubuntu-latest
88+
runs-on: >-
89+
${{
90+
(github.event_name != 'pull_request' ||
91+
github.event.pull_request.head.repo.full_name == github.repository)
92+
&& fromJSON('["self-hosted", "linux", "x64", "qemu"]')
93+
|| 'ubuntu-latest'
94+
}}
95+
7596
strategy:
7697
fail-fast: false
7798
steps:
@@ -90,7 +111,14 @@ jobs:
90111
\curl -sSL https://api.coditsu.io/run/ci | bash
91112
92113
v2_4-rails-specs:
93-
runs-on: ubuntu-latest
114+
runs-on: >-
115+
${{
116+
(github.event_name != 'pull_request' ||
117+
github.event.pull_request.head.repo.full_name == github.repository)
118+
&& fromJSON('["self-hosted", "linux", "x64", "qemu"]')
119+
|| 'ubuntu-latest'
120+
}}
121+
94122
strategy:
95123
fail-fast: false
96124
matrix:

0 commit comments

Comments
 (0)