github actions: update all actions

This commit is contained in:
Rajeh Taher
2025-07-18 22:52:12 +03:00
parent 90781ce0f2
commit 06c7ba0a0d
7 changed files with 131 additions and 167 deletions
+30 -12
View File
@@ -1,6 +1,10 @@
name: Check PR health
name: Linting Check
on: [pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
check-lint:
@@ -8,15 +12,29 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Setup Node and Corepack
uses: actions/setup-node@v3.6.0
with:
node-version: 20.x
- name: Install packages
run: yarn
- name: Check linting
run: yarn lint
- name: Enable Corepack and Set Yarn Version
run: |
corepack enable
corepack prepare yarn@4.x --activate
- name: Restore Yarn Cache
uses: actions/cache@v3
id: yarn-cache
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: yarn install --immutable
- name: Check linting
run: yarn lint