mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-02-25 14:53:40 +00:00
Initial commit
This commit is contained in:
53
testdata/composite-action/action.yml
vendored
Normal file
53
testdata/composite-action/action.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
name: Composite Example Action
|
||||
description: 'Test Composite Action for gh-action-readme dependency analysis'
|
||||
inputs:
|
||||
node-version:
|
||||
description: Node.js version to use
|
||||
required: false
|
||||
default: '20'
|
||||
working-directory:
|
||||
description: Working directory
|
||||
required: false
|
||||
default: '.'
|
||||
outputs:
|
||||
build-result:
|
||||
description: Build result status
|
||||
value: ${{ steps.build.outputs.result }}
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
cd ${{ inputs.working-directory }}
|
||||
npm ci
|
||||
|
||||
- name: Run tests
|
||||
shell: bash
|
||||
run: |
|
||||
npm test
|
||||
echo "Tests completed successfully"
|
||||
env:
|
||||
NODE_ENV: test
|
||||
|
||||
- name: Build project
|
||||
uses: actions/setup-node@v4
|
||||
id: build
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
|
||||
branding:
|
||||
icon: package
|
||||
color: blue
|
||||
Reference in New Issue
Block a user