Skip to content

build(deps): bump actions/checkout from 4.2.2 to 5.0.0 #434

build(deps): bump actions/checkout from 4.2.2 to 5.0.0

build(deps): bump actions/checkout from 4.2.2 to 5.0.0 #434

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- main
workflow_call:
permissions:
contents: read
jobs:
lint:
name: Lint
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set git global config (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: lts/*
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-node-modules
- name: Install
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint