Skip to content

Commit

Permalink
BC-4523 make lint job from github not automatically attempt to commit…
Browse files Browse the repository at this point in the history
… changes (#2648)

* removed matrix os since it only used ubuntu-latest anyway
  • Loading branch information
Loki-Afro authored Jul 12, 2023
1 parent a8616bb commit 31f2eb1
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ env:
node: 18
jobs:
unit:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup node
Expand All @@ -42,24 +39,12 @@ jobs:
-Dsonar.exclusions=src/serverApi/**/*.*,src/fileStorageApi/**/*.*,src/h5pEditorApi/**/*.*
-Dsonar.cpd.exclusions=**/*.test.ts,**/tests/**/*.*,**/*.unit.ts
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
lint:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SC_BOT_GITHUB_TOKEN }}
- name: npm ci
run: npm ci --prefer-offline --no-audit
- name: npm run lint
run: npm run lint
- name: npm run lint:fix
if: failure() && matrix.os == 'ubuntu-latest'
run: npm run lint
- uses: stefanzweifel/git-auto-commit-action@ebb57560423c39cbe37e0620f5653ed953658014
# only run on one of the matrix builds
if: failure() && matrix.os == 'ubuntu-latest'
with:
commit_message: npm run lint
run: npm run lint

0 comments on commit 31f2eb1

Please sign in to comment.