Skip to content

Commit f3b1ecc

Browse files
committed
Use default working-directory in workflow
1 parent b768d94 commit f3b1ecc

5 files changed

+20
-15
lines changed

.github/workflows/rails_graphql_federation_jwts_ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env:
1111
rails_app_root: rails_graphql_federation/jwts
1212
CI: true
1313

14+
defaults:
15+
run:
16+
working-directory: rails_graphql_federation/jwts
17+
1418
jobs:
1519
scan_ruby:
1620
runs-on: ubuntu-latest
@@ -27,7 +31,6 @@ jobs:
2731

2832
- name: Scan for common Rails security vulnerabilities using static analysis
2933
run: ./bin/brakeman --no-pager
30-
working-directory: ${{ env.rails_app_root }}
3134

3235
lint:
3336
runs-on: ubuntu-latest
@@ -44,7 +47,6 @@ jobs:
4447

4548
- name: Lint code for consistent style
4649
run: ./bin/rubocop -f github
47-
working-directory: ${{ env.rails_app_root }}
4850

4951
rspec:
5052
runs-on: ubuntu-latest
@@ -84,7 +86,6 @@ jobs:
8486

8587
- name: Run RSpec
8688
run: ./bin/rspec --format json --out tmp/rspec_results.json --format progress
87-
working-directory: ${{ env.rails_app_root }}
8889

8990
- name: Generate RSpec report
9091
uses: SonicGarden/rspec-report-action@v5

.github/workflows/rails_graphql_federation_reviews_ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env:
1111
rails_app_root: rails_graphql_federation/reviews
1212
CI: true
1313

14+
defaults:
15+
run:
16+
working-directory: rails_graphql_federation/reviews
17+
1418
jobs:
1519
scan_ruby:
1620
runs-on: ubuntu-latest
@@ -27,7 +31,6 @@ jobs:
2731

2832
- name: Scan for common Rails security vulnerabilities using static analysis
2933
run: ./bin/brakeman --no-pager
30-
working-directory: ${{ env.rails_app_root }}
3134

3235
lint:
3336
runs-on: ubuntu-latest
@@ -44,7 +47,6 @@ jobs:
4447

4548
- name: Lint code for consistent style
4649
run: ./bin/rubocop -f github
47-
working-directory: ${{ env.rails_app_root }}
4850

4951
rspec:
5052
runs-on: ubuntu-latest
@@ -84,7 +86,6 @@ jobs:
8486

8587
- name: Run RSpec
8688
run: ./bin/rspec --format json --out tmp/rspec_results.json --format progress
87-
working-directory: ${{ env.rails_app_root }}
8889

8990
- name: Generate RSpec report
9091
uses: SonicGarden/rspec-report-action@v5

.github/workflows/rails_graphql_federation_search_ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env:
1111
rails_app_root: rails_graphql_federation/search
1212
CI: true
1313

14+
defaults:
15+
run:
16+
working-directory: rails_graphql_federation/search
17+
1418
jobs:
1519
scan_ruby:
1620
runs-on: ubuntu-latest
@@ -27,7 +31,6 @@ jobs:
2731

2832
- name: Scan for common Rails security vulnerabilities using static analysis
2933
run: ./bin/brakeman --no-pager
30-
working-directory: ${{ env.rails_app_root }}
3134

3235
lint:
3336
runs-on: ubuntu-latest
@@ -44,7 +47,6 @@ jobs:
4447

4548
- name: Lint code for consistent style
4649
run: ./bin/rubocop -f github
47-
working-directory: ${{ env.rails_app_root }}
4850

4951
rspec:
5052
runs-on: ubuntu-latest
@@ -84,7 +86,6 @@ jobs:
8486

8587
- name: Run RSpec
8688
run: ./bin/rspec --format json --out tmp/rspec_results.json --format progress
87-
working-directory: ${{ env.rails_app_root }}
8889

8990
- name: Generate RSpec report
9091
uses: SonicGarden/rspec-report-action@v5

.github/workflows/rails_graphql_federation_signatures_ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env:
1111
rails_app_root: rails_graphql_federation/signatures
1212
CI: true
1313

14+
defaults:
15+
run:
16+
working-directory: rails_graphql_federation/signatures
17+
1418
jobs:
1519
scan_ruby:
1620
runs-on: ubuntu-latest
@@ -27,7 +31,6 @@ jobs:
2731

2832
- name: Scan for common Rails security vulnerabilities using static analysis
2933
run: ./bin/brakeman --no-pager
30-
working-directory: ${{ env.rails_app_root }}
3134

3235
lint:
3336
runs-on: ubuntu-latest
@@ -44,7 +47,6 @@ jobs:
4447

4548
- name: Lint code for consistent style
4649
run: ./bin/rubocop -f github
47-
working-directory: ${{ env.rails_app_root }}
4850

4951
rspec:
5052
runs-on: ubuntu-latest
@@ -63,7 +65,6 @@ jobs:
6365

6466
- name: Run RSpec
6567
run: ./bin/rspec --format json --out tmp/rspec_results.json --format progress
66-
working-directory: ${{ env.rails_app_root }}
6768

6869
- name: Generate RSpec report
6970
uses: SonicGarden/rspec-report-action@v5

.github/workflows/rails_graphql_federation_users_ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env:
1111
rails_app_root: rails_graphql_federation/users
1212
CI: true
1313

14+
defaults:
15+
run:
16+
working-directory: rails_graphql_federation/users
17+
1418
jobs:
1519
scan_ruby:
1620
runs-on: ubuntu-latest
@@ -27,7 +31,6 @@ jobs:
2731

2832
- name: Scan for common Rails security vulnerabilities using static analysis
2933
run: ./bin/brakeman --no-pager
30-
working-directory: ${{ env.rails_app_root }}
3134

3235
lint:
3336
runs-on: ubuntu-latest
@@ -44,7 +47,6 @@ jobs:
4447

4548
- name: Lint code for consistent style
4649
run: ./bin/rubocop -f github
47-
working-directory: ${{ env.rails_app_root }}
4850

4951
rspec:
5052
runs-on: ubuntu-latest
@@ -84,7 +86,6 @@ jobs:
8486

8587
- name: Run RSpec
8688
run: ./bin/rspec --format json --out tmp/rspec_results.json --format progress
87-
working-directory: ${{ env.rails_app_root }}
8889

8990
- name: Generate RSpec report
9091
uses: SonicGarden/rspec-report-action@v5

0 commit comments

Comments
 (0)