Merge pull request #1344 from maxmind/dependabot/npm_and_yarn/typescr… #2351
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: Lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '3 0 * * SUN' | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Check that package-lock.json is valid JSON | |
run: jq empty package-lock.json | |
- name: Install npm packages | |
run: npm ci | |
- name: Run eslint | |
run: npm run lint | |
- name: Run prettier | |
run: npm run prettier:ci | |
- name: Test compile | |
run: npx tsc --noEmit |