Skip to content

Merge pull request #321 from Nikas-Project/dependabot/npm_and_yarn/sa… #405

Merge pull request #321 from Nikas-Project/dependabot/npm_and_yarn/sa…

Merge pull request #321 from Nikas-Project/dependabot/npm_and_yarn/sa… #405

Workflow file for this run

name: Formatter
on:
push:
branches:
- master
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Cancel previous workflow
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout project
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
persist-credentials: false
- name: Format code
uses: creyD/[email protected]
with:
prettier_options: --write **/*.{md,js,html,scss,yaml,yml}
same_commit: false
commit_message: "[CI] Format Code!"
commit_description: "Format code using Prettier"
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
- name: Lint Docker files
uses: hadolint/[email protected]
with:
dockerfile: "Dockerfile"
verbose: true
failure-threshold: error
format: tty
ignore: "DL3013,DL3018"
- name: Lint Docker files
uses: hadolint/[email protected]
with:
dockerfile: "Dockerfile.dev"
verbose: true
failure-threshold: error
format: tty
ignore: "DL3013,DL3018"