fix(ci): checkout before using local actions

This commit is contained in:
2025-09-12 18:30:03 +03:00
parent c8ba576b4e
commit 66f2aa1099
4 changed files with 30 additions and 17 deletions

View File

@@ -34,5 +34,10 @@ runs:
run: npm ci || { echo "❌ npm install failed" && npm install }
shell: bash
- name: Setup Tree-sitter Environment
uses: ./.github/actions/setup-treesitter
- name: Install Tree-sitter CLI
run: npm install -g tree-sitter-cli
shell: bash
- name: Generate Grammar
run: npm run generate
shell: bash

View File

@@ -1,14 +0,0 @@
---
name: "Setup Tree-sitter Environment"
description: "Installs Tree-sitter CLI and generates grammar"
runs:
using: "composite"
steps:
- name: Install Tree-sitter CLI
run: npm install -g tree-sitter-cli
shell: bash
- name: Generate Grammar
run: npm run generate
shell: bash

View File

@@ -18,6 +18,17 @@ concurrency:
cancel-in-progress: false
jobs:
checkout:
name: Checkout Repository
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
validate:
name: 🔍 Validate Release
runs-on: ubuntu-latest
@@ -64,7 +75,7 @@ jobs:
steps:
- name: 📋 Check CI Workflow Status
uses: actions/github-script@e1ec48de9e3eaf9b93b1c5f88eaf97ae19d7b7bb # v7.0.5
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
with:
script: |
const { data: workflows } = await github.rest.actions.listWorkflowRuns({

View File

@@ -16,6 +16,17 @@ concurrency:
permissions: read-all
jobs:
checkout:
name: Checkout Repository
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
test:
name: 🧪 Test Suite
runs-on: ubuntu-latest