All checks were successful
CD / Release (push) Successful in 52s
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [actions/setup-node](https://github.com/actions/setup-node) ([changelog](395ad32622..6044e13b5d)) | action | digest | `395ad32` → `6044e13` |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43MS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNzQuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYWN0aW9uIiwiZGVwcyJdfQ==-->
Reviewed-on: #44
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
100 lines
2.9 KiB
YAML
100 lines
2.9 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
|
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
- run: npm ci
|
|
- name: Format code
|
|
run: npm run format
|
|
- name: Typecheck
|
|
run: npm run typecheck
|
|
- name: Run test
|
|
run: npm run test
|
|
|
|
check-dist:
|
|
name: Check Dist
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
|
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
- run: npm ci
|
|
- run: mv dist dist_orig
|
|
- run: npm run build
|
|
- run: |
|
|
original_hash=$(sha256sum dist_orig/index.js | cut -d' ' -f1)
|
|
new_hash=$(sha256sum dist/index.js | cut -d' ' -f1)
|
|
if [ "$original_hash" != "$new_hash" ]; then
|
|
echo "Build is not up to date. Original hash: $original_hash, new hash: $new_hash"
|
|
exit 1
|
|
fi
|
|
|
|
dry-run:
|
|
name: Dry-Run
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
- run: npm ci
|
|
- name: Increment tag
|
|
id: increment-tag
|
|
uses: ./
|
|
with:
|
|
token: ${{ secrets.GITEA_TOKEN }}
|
|
- name: Print new tag
|
|
run: |
|
|
if [ -z "${{ steps.increment-tag.outputs.new-tag }}" ]; then
|
|
echo "No new tag found"
|
|
exit 1
|
|
fi
|
|
|
|
echo "New tag: ${{ steps.increment-tag.outputs.new-tag }}"
|
|
|
|
dry-run-prerelease:
|
|
name: Dry-Run Prerelease
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
- run: npm ci
|
|
- name: Create prerelease tag
|
|
id: prerelease-tag
|
|
uses: ./
|
|
with:
|
|
token: ${{ secrets.GITEA_TOKEN }}
|
|
prerelease: "true"
|
|
- name: Print new tag
|
|
run: |
|
|
if [ -z "${{ steps.prerelease-tag.outputs.new-tag }}" ]; then
|
|
echo "No new tag found"
|
|
exit 1
|
|
fi
|
|
|
|
echo "New tag: ${{ steps.prerelease-tag.outputs.new-tag }}"
|
|
- name: Verify prerelease tag format
|
|
run: |
|
|
if [[ "${{ steps.prerelease-tag.outputs.new-tag }}" =~ -rc-[a-f0-9]{7,}$ ]]; then
|
|
echo "✓ Prerelease tag format is correct"
|
|
else
|
|
echo "✗ Prerelease tag format is incorrect. Expected format: X.Y.Z-rc-<sha>"
|
|
exit 1
|
|
fi
|