mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 05:05:15 +08:00
DEV: Fix syntax_tree in GitHub CI
This broke because of directory ownership errors during `git ls-files`. This commit fixes the permissions and adds bash flags so that those kind of errors will blow up the step in future.
This commit is contained in:
parent
fa30ab4ed7
commit
488b8b369a
7
.github/workflows/linting.yml
vendored
7
.github/workflows/linting.yml
vendored
|
@ -22,6 +22,9 @@ jobs:
|
|||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
- name: Set working directory owner
|
||||
run: chown root:root .
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
@ -70,7 +73,9 @@ jobs:
|
|||
|
||||
- name: syntax_tree
|
||||
if: ${{ !cancelled() }}
|
||||
run: bundle exec stree check Gemfile $(git ls-files '*.rb') $(git ls-files '*.rake')
|
||||
run: |
|
||||
set -E
|
||||
bundle exec stree check Gemfile $(git ls-files '*.rb') $(git ls-files '*.rake')
|
||||
|
||||
- name: ESLint (core)
|
||||
if: ${{ !cancelled() }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user