Skip to content

Commit 27f640e

Browse files
committed
universalize trigger settings for workflows
1 parent 453f02a commit 27f640e

File tree

9 files changed

+75
-6
lines changed

9 files changed

+75
-6
lines changed

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generator tests
1+
name: Generator tests # TODO needs to be duplicated for RoR Pro
22

33
on:
44
push:

.github/workflows/main.yml renamed to .github/workflows/integration-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Main test
1+
name: Integration Tests
22

33
on:
44
push:
@@ -7,10 +7,12 @@ on:
77
paths-ignore:
88
- '**.md'
99
- 'docs/**'
10+
- 'react_on_rails_pro/**'
1011
pull_request:
1112
paths-ignore:
1213
- '**.md'
1314
- 'docs/**'
15+
- 'react_on_rails_pro/**'
1416
workflow_dispatch:
1517
inputs:
1618
force_run:

.github/workflows/lint-js-and-ruby.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@ on:
77
paths-ignore:
88
- '**.md'
99
- 'docs/**'
10+
- 'react_on_rails_pro/**'
1011
pull_request:
1112
paths-ignore:
1213
- '**.md'
1314
- 'docs/**'
15+
- 'react_on_rails_pro/**'
1416
workflow_dispatch:
17+
inputs:
18+
force_run:
19+
description: 'Force run all jobs (bypass detect-changes)'
20+
required: false
21+
type: boolean
22+
default: false
1523

1624
jobs:
1725
detect-changes:

.github/workflows/package-js-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@ on:
99
- 'docs/**'
1010
- 'lib/**'
1111
- 'spec/react_on_rails/**'
12+
- 'react_on_rails_pro/**'
1213
pull_request:
1314
paths-ignore:
1415
- '**.md'
1516
- 'docs/**'
1617
- 'lib/**'
1718
- 'spec/react_on_rails/**'
19+
- 'react_on_rails_pro/**'
1820
workflow_dispatch:
21+
inputs:
22+
force_run:
23+
description: 'Force run all jobs (bypass detect-changes)'
24+
required: false
25+
type: boolean
26+
default: false
1927

2028
jobs:
2129
detect-changes:

.github/workflows/playwright.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ name: Playwright E2E Tests
33
on:
44
push:
55
branches: [master]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
69
workflow_dispatch:
10+
inputs:
11+
force_run:
12+
description: 'Force run all jobs (bypass detect-changes)'
13+
required: false
14+
type: boolean
15+
default: false
716

817
jobs:
918
playwright:

.github/workflows/pro-package-tests.yml renamed to .github/workflows/pro-gem-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,19 @@ on:
44
push:
55
branches:
66
- 'master'
7+
paths-ignore:
8+
- '**.md'
9+
- 'docs/**'
10+
- 'lib/**'
11+
- 'spec/**'
12+
- 'packages/**'
713
pull_request:
14+
paths-ignore:
15+
- '**.md'
16+
- 'docs/**'
17+
- 'lib/**'
18+
- 'spec/**'
19+
- 'packages/**'
820
workflow_dispatch:
921
inputs:
1022
force_run:

.github/workflows/pro-integration-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,19 @@ on:
44
push:
55
branches:
66
- 'master'
7+
paths-ignore:
8+
- '**.md'
9+
- 'docs/**'
10+
- 'lib/**'
11+
- 'spec/**'
12+
- 'packages/react_on_rails/**'
713
pull_request:
14+
paths-ignore:
15+
- '**.md'
16+
- 'docs/**'
17+
- 'lib/**'
18+
- 'spec/**'
19+
- 'packages/react_on_rails/**'
820
workflow_dispatch:
921
inputs:
1022
force_run:

.github/workflows/pro-lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,19 @@ on:
44
push:
55
branches:
66
- 'master'
7+
paths-ignore:
8+
- '**.md'
9+
- 'docs/**'
10+
- 'lib/**'
11+
- 'spec/**'
12+
- 'packages/react_on_rails/**'
713
pull_request:
14+
paths-ignore:
15+
- '**.md'
16+
- 'docs/**'
17+
- 'lib/**'
18+
- 'spec/**'
19+
- 'packages/react_on_rails/**'
820
workflow_dispatch:
921
inputs:
1022
force_run:

.github/workflows/rspec-package-specs.yml renamed to .github/workflows/rspec-gem-specs.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,21 @@ on:
77
paths-ignore:
88
- '**.md'
99
- 'docs/**'
10-
- 'packages/react-on-rails/src/**'
11-
- 'node_package/src/**'
10+
- 'packages/**'
11+
- 'react_on_rails_pro/**'
1212
pull_request:
1313
paths-ignore:
1414
- '**.md'
1515
- 'docs/**'
16-
- 'packages/react-on-rails/src/**'
17-
- 'node_package/src/**'
16+
- 'packages/**'
17+
- 'react_on_rails_pro/**'
1818
workflow_dispatch:
19+
inputs:
20+
force_run:
21+
description: 'Force run all jobs (bypass detect-changes)'
22+
required: false
23+
type: boolean
24+
default: false
1925

2026
jobs:
2127
detect-changes:

0 commit comments

Comments
 (0)