Skip to content

v4.0.2 (#40)

v4.0.2 (#40) #54

Workflow file for this run

name: Test Astro action
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Project
run: |
rm -rf astro-project
mkdir -p astro-project
cd astro-project
echo '{"name": "astro-project", "engines": {"node": "20"}, "scripts": {"build": "mkdir -p dist && touch dist/index.html"}}' > package.json
npm install --no-package-lock
- name: Test Astro Action
uses: ./astro
id: astro_action
with:
path: astro-project/dist
build-command: "cd astro-project && npm run build"
- name: Verify Astro Outputs
run: |
if [ -z "${{ steps.astro_action.outputs.node-version }}" ]; then exit 1; fi