Fix punctuation and missing words in minFraud API responses documenta… #1497
Workflow file for this run
This file contains hidden or 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: Linting | |
| on: | |
| push: | |
| pull_request: | |
| permissions: {} | |
| jobs: | |
| cache-keys: | |
| name: Setup – Cache keys | |
| runs-on: ubuntu-latest | |
| outputs: | |
| build: build-${{ steps.build.outputs.hash }}-v2 | |
| dot-cache: dot-cache-${{ github.event.number }}-v1 | |
| node-modules: node-modules-${{ steps.node-modules.outputs.hash }}-v1 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - id: build | |
| run: echo "hash=${{ hashFiles('assets/**', 'content/**', 'layouts/**', 'static/**', '**/package.json', '**/package-lock.json') }}" >> "GITHUB_OUTPUT" | |
| - id: node-modules | |
| run: echo "hash=${{ hashFiles('**/package-lock.json') }}" >> "GITHUB_OUTPUT" | |
| test-lint: | |
| name: Test – Lint | |
| needs: cache-keys | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Get cached dependencies | |
| uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1 | |
| with: | |
| path: | | |
| node_modules | |
| key: ${{ needs.cache-keys.outputs.node-modules }} | |
| - name: Check that package-lock.json is valid JSON | |
| run: jq empty package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linters | |
| run: npm run lint |