Files
update-version/.gitea/workflows/pr-validation.yaml
T
Jonathan Bernard 8f71630e78
PR Validation / Unit Tests (pull_request) Successful in 15s
Add the ability to directly set version parts.
- Move unittests to a dedicated file.
- Rework CLI making version part selection an option that can be passed
  into many commands.
- Add support for updates to version constants defined in soruce files.
2025-06-17 20:50:33 -05:00

35 lines
856 B
YAML

---
name: PR Validation
on:
pull_request:
branches:
- main
jobs:
unittest:
name: Unit Tests
runs-on: [pbm_api_cicd]
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Cache dependecies
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: |
~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('update_version.nimble') }}
restore-keys: |
${{ runner.os }}-nimble-
- name: Build unittests
run: |
printf "🔨\033[0;32m Compiling unit tests...\033[0m\n" >&1
nimble c tupdate_version.nim
- name: Run unittests
run: |
printf "🧪\033[0;32m Running unit tests...\033[0m\n" >&1
./tupdate_version