mirror of
https://github.com/ivuorinen/tree-sitter-shellspec.git
synced 2026-02-10 12:50:32 +00:00
fix(ci): checkout before using local actions
This commit is contained in:
9
.github/actions/setup-dev/action.yml
vendored
9
.github/actions/setup-dev/action.yml
vendored
@@ -34,5 +34,10 @@ runs:
|
|||||||
run: npm ci || { echo "❌ npm install failed" && npm install }
|
run: npm ci || { echo "❌ npm install failed" && npm install }
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Setup Tree-sitter Environment
|
- name: Install Tree-sitter CLI
|
||||||
uses: ./.github/actions/setup-treesitter
|
run: npm install -g tree-sitter-cli
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Generate Grammar
|
||||||
|
run: npm run generate
|
||||||
|
shell: bash
|
||||||
|
|||||||
14
.github/actions/setup-treesitter/action.yml
vendored
14
.github/actions/setup-treesitter/action.yml
vendored
@@ -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
|
|
||||||
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -18,6 +18,17 @@ concurrency:
|
|||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
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:
|
validate:
|
||||||
name: 🔍 Validate Release
|
name: 🔍 Validate Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -64,7 +75,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 📋 Check CI Workflow Status
|
- name: 📋 Check CI Workflow Status
|
||||||
uses: actions/github-script@e1ec48de9e3eaf9b93b1c5f88eaf97ae19d7b7bb # v7.0.5
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const { data: workflows } = await github.rest.actions.listWorkflowRuns({
|
const { data: workflows } = await github.rest.actions.listWorkflowRuns({
|
||||||
|
|||||||
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@@ -16,6 +16,17 @@ concurrency:
|
|||||||
permissions: read-all
|
permissions: read-all
|
||||||
|
|
||||||
jobs:
|
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:
|
test:
|
||||||
name: 🧪 Test Suite
|
name: 🧪 Test Suite
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user