mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2025-12-10 15:57:00 +00:00
32 lines
760 B
YAML
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
|