From 797c81d14ea5bbf0f873fc98f88e389c1d3ddceb Mon Sep 17 00:00:00 2001 From: Salman Chishti Date: Fri, 25 Jul 2025 11:13:08 +0000 Subject: [PATCH] Add Node.js 24 test workflow --- .github/workflows/test-node24-workflow.yml | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/test-node24-workflow.yml diff --git a/.github/workflows/test-node24-workflow.yml b/.github/workflows/test-node24-workflow.yml new file mode 100644 index 0000000..2af7c0f --- /dev/null +++ b/.github/workflows/test-node24-workflow.yml @@ -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