feat: google ads new UI #1609
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: Code quality checks | |
on: | |
pull_request: | |
jobs: | |
py-scripts-lint: | |
name: Check for formatting of python scripts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Install Dependencies | |
run: npm run setup:python | |
# Reference: https://black.readthedocs.io/en/stable/integrations/github_actions.html | |
- name: Check formatting for Python files | |
uses: psf/black@stable | |
with: | |
options: '--check --verbose' | |
formatting-lint: | |
name: Check for formatting & lint errors | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Setup Node | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version-file: .nvmrc | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm run setup:npm | |
- name: Run Lint Checks | |
run: | | |
npm run lint | |
- run: git diff --exit-code | |
- name: Error message | |
if: ${{ failure() }} | |
run: | | |
echo 'ESLint check is failing. Please run `npm run lint` on your working copy and commit the changes.' |