Merge pull request #105 from utdata/pngprob #97
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: Format-and-Lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 # Check out the repository first. | |
- uses: actionsx/prettier@v2 | |
with: | |
# prettier CLI arguments. | |
args: --check --config .prettierrc.json --ignore-path .prettierignore . | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16.18.0 | |
- name: Install dependencies | |
run: npm ci | |
- name: Run eslint on changed files | |
uses: tj-actions/eslint-changed-files@v19 | |
with: | |
config_path: ".eslintrc.json" |