Merge pull request #1181 from DependencyTrack/dependabot/github_actio… #743
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- 'master' # Default branch | |
- 'feature-**' # Feature branches | |
pull_request: | |
branches: | |
- 'master' # Default branch | |
- 'feature-**' # Feature branches | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4.2.2 | |
- name: Set up NodeJs | |
uses: actions/setup-node@v4.2.0 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Lint Prettier | |
run: npm run prettier | |
continue-on-error: false | |
- name: Lint ESLint | |
run: npm run eslint | |
continue-on-error: true |