Skip to content

Merge branch 'electron:main' into main #12

Merge branch 'electron:main' into main

Merge branch 'electron:main' into main #12

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # tag: v6.0.1
- name: Setup Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # tag: v6.1.0
with:
node-version: lts/-1
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # tag: v5.0.1
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 --immutable
- name: Lint
run: yarn lint