mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 23:00:46 +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
|
timeout-minutes: 30
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set working directory owner
|
||||||
|
run: chown root:root .
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
@ -70,7 +73,9 @@ jobs:
|
||||||
|
|
||||||
- name: syntax_tree
|
- name: syntax_tree
|
||||||
if: ${{ !cancelled() }}
|
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)
|
- name: ESLint (core)
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user