From 838a2d88dd4852115762332d80129f93e2d8ea9a Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Fri, 11 Oct 2024 20:55:34 +0800 Subject: [PATCH] Create validate-commit.yml --- .github/workflows/validate-commit.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/validate-commit.yml diff --git a/.github/workflows/validate-commit.yml b/.github/workflows/validate-commit.yml new file mode 100644 index 0000000..b1a1d99 --- /dev/null +++ b/.github/workflows/validate-commit.yml @@ -0,0 +1,27 @@ +name: Validate Commit + +on: + push: + branches: + - hidden + workflow_dispatch: + +jobs: + validate: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Run validation script + run: node script.js