mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-02-11 13:48:28 +00:00
feat: go 1.25.5, dependency updates, renamed internal/errors (#129)
* feat: rename internal/errors to internal/apperrors * fix(tests): clear env values before using in tests * feat: rename internal/errors to internal/apperrors * chore(deps): update go and all dependencies * chore: remove renovate from pre-commit, formatting * chore: sonarcloud fixes * feat: consolidate constants to appconstants/constants.go * chore: sonarcloud fixes * feat: simplification, deduplication, test utils * chore: sonarcloud fixes * chore: sonarcloud fixes * chore: sonarcloud fixes * chore: sonarcloud fixes * chore: clean up * fix: config discovery, const deduplication * chore: fixes
This commit is contained in:
22
testdata/composite-action/action.yml
vendored
22
testdata/composite-action/action.yml
vendored
@@ -18,13 +18,13 @@ runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
token: ${{ github.token }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: 'npm'
|
||||
@@ -44,10 +44,22 @@ runs:
|
||||
NODE_ENV: test
|
||||
|
||||
- name: Build project
|
||||
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
||||
shell: bash
|
||||
id: build
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
run: |
|
||||
set -u
|
||||
cd ${{ inputs.working-directory }}
|
||||
npm run build
|
||||
# Capture exit code immediately to avoid fragility with intervening commands
|
||||
build_exit_code=$?
|
||||
# Write result to GITHUB_OUTPUT based on captured exit code
|
||||
# Note: We do not use 'set -e' because we need to handle build failures
|
||||
# gracefully and report them via the output rather than failing the step
|
||||
if [ $build_exit_code -eq 0 ]; then
|
||||
echo "result=success" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "result=failure" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
branding:
|
||||
icon: package
|
||||
|
||||
Reference in New Issue
Block a user