Skip to content

Upgrade GitHub Actions for Node 24 compatibility #207

Upgrade GitHub Actions for Node 24 compatibility

Upgrade GitHub Actions for Node 24 compatibility #207

name: Copilot Setup Steps
"on":
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
push:
paths:
- .github/workflows/copilot-setup-steps.yml
workflow_dispatch: null
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Install gh-aw extension
run: curl -fsSL https://raw.githubusercontent.com/github/gh-aw/refs/heads/main/install-gh-aw.sh | bash
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
cache: npm
cache-dependency-path: actions/setup/js/package-lock.json
node-version: "24"
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
cache: true
go-version-file: go.mod
- name: Install JavaScript dependencies
run: cd actions/setup/js && npm ci
- name: Install development dependencies
run: make deps-dev
- name: Build code
run: make build
- name: Recompile workflows
run: make recompile || true
env:
GH_TOKEN: ${{ github.token }}
- name: Install uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
- name: Install Go language server (gopls)
run: go install golang.org/x/tools/gopls@latest
- name: Install TypeScript language server
run: npm install -g typescript-language-server typescript