Skip to content

Commit 24dedc5

Browse files
committed
Remove global working dir
To hopefully get workflows to run.
1 parent 5fa46fd commit 24dedc5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/debug_fasp.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ on:
99
paths:
1010
- "debug_fasp/**"
1111

12-
defaults:
13-
run:
14-
working-directory: ../debug_fasp
15-
1612
jobs:
1713
scan_ruby:
1814
runs-on: ubuntu-latest
@@ -26,9 +22,11 @@ jobs:
2622
with:
2723
ruby-version: .ruby-version
2824
bundler-cache: true
25+
working-directory: ./debug_fasp
2926

3027
- name: Scan for common Rails security vulnerabilities using static analysis
3128
run: bin/brakeman --no-pager
29+
working-directory: ./debug_fasp
3230

3331
scan_js:
3432
runs-on: ubuntu-latest
@@ -42,9 +40,11 @@ jobs:
4240
with:
4341
ruby-version: .ruby-version
4442
bundler-cache: true
43+
working-directory: ./debug_fasp
4544

4645
- name: Scan for security vulnerabilities in JavaScript dependencies
4746
run: bin/importmap audit
47+
working-directory: ./debug_fasp
4848

4949
lint:
5050
runs-on: ubuntu-latest
@@ -57,9 +57,11 @@ jobs:
5757
with:
5858
ruby-version: .ruby-version
5959
bundler-cache: true
60+
working-directory: ./debug_fasp
6061

6162
- name: Lint code for consistent style
6263
run: bin/rubocop -f github
64+
working-directory: ./debug_fasp
6365

6466
test:
6567
runs-on: ubuntu-latest
@@ -82,12 +84,14 @@ jobs:
8284
with:
8385
ruby-version: .ruby-version
8486
bundler-cache: true
87+
working-directory: ./debug_fasp
8588

8689
- name: Run tests
8790
env:
8891
RAILS_ENV: test
8992
# REDIS_URL: redis://localhost:6379/0
9093
run: bin/rails db:test:prepare test test:system
94+
working-directory: ./debug_fasp
9195

9296
- name: Keep screenshots from failed system tests
9397
uses: actions/upload-artifact@v4
@@ -96,3 +100,4 @@ jobs:
96100
name: screenshots
97101
path: ${{ github.workspace }}/tmp/screenshots
98102
if-no-files-found: ignore
103+
working-directory: ./debug_fasp

0 commit comments

Comments
 (0)