name: Copilot Setup Steps
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
permissions:
contents: read
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set up Rust toolchain
run: rustup install
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-copilot-${{ hashFiles('**/Cargo.lock') }}
- name: Install Node.js tools
run: |
npm install -g cspell markdownlint-cli
- name: Run Copilot Agent
run: |
echo "Copilot agent environment ready"
echo "Available components: cargo, clippy, rustfmt, cspell, markdownlint"
echo "Rust version: $(rustc --version)"