Bump eslint from 8.57.0 to 9.1.0 #4
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
security_hardening: | |
name: Check security hardening | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Ensure SHA pinned actions | |
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@ba37328d4ea95eaf8b3bd6c6cef308f709a5f2ec | |
build_test: | |
name: Build & Test | |
needs: security_hardening | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
with: | |
ref: ${{ github.head_ref }} # https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch | |
- name: Get runs.using version | |
id: get-runs-using-version | |
uses: zgosalvez/github-actions-get-action-runs-using-version@eb715590fcff1a476c59acbaba4a9e0b0397cc60 | |
- name: Set up Node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 | |
with: | |
node-version: v${{ steps.get-runs-using-version.outputs.version }} | |
- name: Cache Node Packages | |
id: node-cache | |
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 | |
with: | |
path: ~/.npm | |
key: node-cache-${{ steps.get-runs-using-version.outputs.prop }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
node-cache-${{ steps.get-runs-using-version.outputs.prop }}- | |
node-cache- | |
- name: Get Node packages | |
run: npm ci | |
- name: Run linter tool | |
run: npm run lint | |
- name: Prepare | |
run: npm run prepare | |
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d | |
with: | |
commit_message: Apply `npm run prepare` changes |