From 1e256e10b0dc0043c274051938f2eaa9d09c6a9e Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Fri, 11 Oct 2024 20:51:01 +0800 Subject: [PATCH] Create validate-commit.yml --- .github/workflows/validate-commit.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..98fe49c --- /dev/null +++ b/.github/workflows/validate-commit.yml @@ -0,0 +1,26 @@ +name: Validate Commit + +on: + push: + branches: + - hidden + +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