mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-15 05:05:05 +00:00
Add Node.js 24 test workflow
This commit is contained in:
parent
93d8a15b3b
commit
797c81d14e
49
.github/workflows/test-node24-workflow.yml
vendored
Normal file
49
.github/workflows/test-node24-workflow.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
name: Test with Node.js 24
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ node24 ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test-node24:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
# Setup with Node.js 24
|
||||
- name: Setup Node.js 24
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
|
||||
# Create a test artifact
|
||||
- name: Create test file
|
||||
run: |
|
||||
mkdir -p test-artifact
|
||||
echo "Hello from Node.js 24" > test-artifact/test.txt
|
||||
|
||||
# Upload the test artifact
|
||||
- name: Upload test artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: test-artifact
|
||||
path: test-artifact
|
||||
|
||||
# Download using this action
|
||||
- name: Download with the updated action
|
||||
uses: ./
|
||||
with:
|
||||
name: test-artifact
|
||||
path: downloaded-artifact
|
||||
|
||||
# Verify download succeeded
|
||||
- name: Verify download
|
||||
run: |
|
||||
if [ -f "downloaded-artifact/test.txt" ]; then
|
||||
echo "✅ Download succeeded!"
|
||||
cat downloaded-artifact/test.txt
|
||||
else
|
||||
echo "❌ Download failed!"
|
||||
exit 1
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user