Feat/234-lancamento #529
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: Linting and auditing | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [develop] | |
paths-ignore: | |
- 'README.md' | |
- 'docs' | |
jobs: | |
lint: | |
name: Dockerfiles linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run hadolint | |
uses: reviewdog/action-hadolint@v1 | |
with: | |
hadolint_ignore: DL3018 | |
reporter: github-pr-review | |
audit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout latest code | |
uses: actions/checkout@v2 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
- name: Install dependencies | |
run: npm i --legacy-peer-deps | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_CONTEXT: ${{ toJson(github) }} |