Create validate-commit.yml

This commit is contained in:
xixu-me committed 2024-10-11 20:55:34 +08:00
1 parent 635bcb095c
commit 838a2d88dd
1 file changed
+27
+27
View File
@@ -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