From ac4e1e4a440418da9a0334c88d3950f81872d3ee Mon Sep 17 00:00:00 2001 From: kyle Date: Thu, 12 Feb 2026 22:31:41 -0600 Subject: [PATCH] updates --- .github/workflows/pr.yml | 37 ++---------------------------- .github/workflows/release.yml | 4 ++++ .github/workflows/validate.yml | 42 ++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 35 deletions(-) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f43f2b1..0a1f10a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,5 @@ name: pr + on: pull_request: branches: @@ -6,38 +7,4 @@ on: jobs: validate: - name: validate - runs-on: ubuntu-latest - steps: - - name: checkout - uses: actions/checkout@v6 - - - name: print workflow data (uses self) - uses: ./ - - - name: pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 - - - name: node - uses: actions/setup-node@v6.2.0 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' - - - name: pnpm install - id: install-deps - run: pnpm install - - - name: check - tests - if: always() && steps.install-deps.outcome == 'success' - run: pnpm test - - - name: check - formatting - if: always() && steps.install-deps.outcome == 'success' - run: pnpm format - - - name: check - spelling - if: always() && steps.install-deps.outcome == 'success' - run: pnpm spellcheck + uses: ./.github/workflows/validate.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a6776ae..a0c197c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,11 @@ concurrency: group: release jobs: + validate: + uses: ./.github/workflows/validate.yml + release: + needs: [validate] runs-on: ubuntu-latest outputs: version: ${{ steps.compute_version.outputs.semVer }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..54ceef7 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,42 @@ +name: validate + +on: + workflow_call: + +jobs: + validate: + name: validate + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v6 + + - name: print workflow data (uses self) + uses: ./ + + - name: pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: node + uses: actions/setup-node@v6.2.0 + with: + node-version-file: '.nvmrc' + cache: 'pnpm' + + - name: pnpm install + id: install-deps + run: pnpm install + + - name: check - tests + if: always() && steps.install-deps.outcome == 'success' + run: pnpm test + + - name: check - formatting + if: always() && steps.install-deps.outcome == 'success' + run: pnpm format + + - name: check - spelling + if: always() && steps.install-deps.outcome == 'success' + run: pnpm spellcheck