From 398d51a3fece8ca8d001d2d6f57361de1438a97d Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:36:53 -0400 Subject: [PATCH] chore: rename test-on-main workflow to validate-main --- .../{test-on-main.yml => validate-main.yml} | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) rename .github/workflows/{test-on-main.yml => validate-main.yml} (51%) diff --git a/.github/workflows/test-on-main.yml b/.github/workflows/validate-main.yml similarity index 51% rename from .github/workflows/test-on-main.yml rename to .github/workflows/validate-main.yml index 01680bdf..a986ff4d 100644 --- a/.github/workflows/test-on-main.yml +++ b/.github/workflows/validate-main.yml @@ -1,15 +1,25 @@ -name: Test Main Branch +name: Validate Main Branch on: workflow_dispatch: - push: - branches: [main] - paths: - - 'src/**/*' - - 'package.json' jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + run_install: true + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: pnpm + - name: Lint Commit Messages + run: pnpm dlx commitlint --from $(git describe --tags --abbrev=0) + - run: pnpm lint test: + needs: lint runs-on: ubuntu-latest strategy: matrix: