Skip to content

Release 1.0.8 (#14) #58

Release 1.0.8 (#14)

Release 1.0.8 (#14) #58

name: RulePack Tests
on:
push:
# branches: [ main ]
pull_request:
branches: [main]
jobs:
test_rulepack:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Run tests
run: npm test
generate_rules:
needs: test_rulepack
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21.x
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Generate rules
run: node_modules/@ping-identity/dvlint/lib/dvlint -R ../../../../RulePack --lintRules --json > docs/rules.json
- name: Commit and push if changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add docs/rules.json
git diff --staged --quiet || (git commit -m "Update rules.json" && git push)