Fix direct upload: use MD5-base64 checksum and check PUT response #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Tests | |
| on: | |
| push: | |
| branches: [ "*" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, '[skip-tests]')" | |
| permissions: | |
| contents: read | |
| checks: write | |
| strategy: | |
| matrix: | |
| node-version: [ 24.x, 25.x ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linter | |
| run: npm run lint | |
| - name: Run tests | |
| run: npm test | |
| continue-on-error: true | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-node-${{ matrix.node-version }} | |
| path: tmp/test-results.xml | |
| retention-days: 30 | |
| - name: Publish test report | |
| if: always() | |
| uses: mikepenz/action-junit-report@v5 | |
| with: | |
| report_paths: tmp/test-results.xml | |
| check_name: Unit Test Results (Node ${{ matrix.node-version }}) | |
| summary: true | |
| detailed_summary: true | |
| fail_on_failure: true |