Create validate-commit.yml
This commit is contained in:
1 parent
94cb212397
commit
4af23243c9
1 file changed
+29
@@ -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
|
||||
Reference in new issue
Block a user