Skip to content

feat: gaec configData updates #2170

feat: gaec configData updates

feat: gaec configData updates #2170

Workflow file for this run

name: Verify
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
formatting-lint:
name: Check for formatting & lint errors
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Setup Node
uses: actions/setup-node@v4.0.3
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install Dependencies
run: npm ci
- id: files
uses: Ana06/get-changed-files@v1.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run format Checks
run: |
npx prettier ${{steps.files.outputs.added_modified}} --write
- run: git diff --exit-code
- name: Formatting Error message
if: ${{ failure() }}
run: |
echo 'prettier formatting failure. Ensure you run `npm run format` and commit the files.'
- name: Run eslint Checks
run: |
npx eslint ${{steps.files.outputs.added_modified}} --fix
- run: git diff --exit-code
- name: Eslint Error message
if: ${{ failure() }}
run: |
echo 'Eslint failure. Ensure you run `npm run lint:fix` and commit the files.'