Create validate-commit.yml

This commit is contained in:
xixu-me authored and GitHub committed 2024-10-11 20:35:20 +08:00
1 parent 94cb212397
commit 4af23243c9
1 file changed
+29
+29
View File
@@ -0,0 +1,29 @@
name: Validate Commit
on:
push:
branches:
- hidden-branch
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: Install dependencies
run: npm ci
- name: Run validation script
run: node script.js