diff --git a/.github/workflows/validate-commit.yml b/.github/workflows/validate-commit.yml new file mode 100644 index 0000000..b384281 --- /dev/null +++ b/.github/workflows/validate-commit.yml @@ -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