Files
database/.github/workflows/regex.yml

32 lines
760 B
YAML

name: Validate Regex Patterns
on:
push:
paths:
- "regex_patterns/**/*.yml"
- "regex_patterns/**/*.yaml"
- ".github/workflows/regex.yml"
- "scripts/validatePattern.ps1"
pull_request:
paths:
- "regex_patterns/**/*.yml"
- "regex_patterns/**/*.yaml"
- ".github/workflows/regex.yml"
- "scripts/validatePattern.ps1"
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
container: mcr.microsoft.com/powershell:lts-alpine-3.18
steps:
- uses: actions/checkout@v4
- name: validate
run: pwsh scripts/validateAllPatterns.ps1
- name: test
run: |
echo "TODO: Implement unit tests for all patterns"
# TODO: Add test runner command here