mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2025-12-10 15:57:00 +00:00
ci(workflows): add test and validation workflows for regex patterns
This commit is contained in:
26
.github/workflows/testRegex.yml
vendored
Normal file
26
.github/workflows/testRegex.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Test Regex
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "regex_patterns/**/*.yml"
|
||||
- "regex_patterns/**/*.yaml"
|
||||
- ".github/workflows/testRegex.yml"
|
||||
- "scripts/testPatterns.ps1"
|
||||
pull_request:
|
||||
paths:
|
||||
- "regex_patterns/**/*.yml"
|
||||
- "regex_patterns/**/*.yaml"
|
||||
- ".github/workflows/testRegex.yml"
|
||||
- "scripts/testPatterns.ps1"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/powershell:lts
|
||||
steps:
|
||||
- uses: actions:checkout@v4
|
||||
|
||||
- name: Test Patterns
|
||||
run: pwsh scripts/testPatterns.ps1
|
||||
@@ -1,18 +1,20 @@
|
||||
name: Regular Expressions
|
||||
name: Validate Regex
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "regex_patterns/**/*.yml"
|
||||
- "regex_patterns/**/*.yaml"
|
||||
- ".github/workflows/regex.yml"
|
||||
- ".github/workflows/validateRegex.yml"
|
||||
- "scripts/validatePattern.ps1"
|
||||
- "scripts/validateAllPatterns.ps1"
|
||||
pull_request:
|
||||
paths:
|
||||
- "regex_patterns/**/*.yml"
|
||||
- "regex_patterns/**/*.yaml"
|
||||
- ".github/workflows/regex.yml"
|
||||
- ".github/workflows/validateRegex.yml"
|
||||
- "scripts/validatePattern.ps1"
|
||||
- "scripts/validateAllPatterns.ps1"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -22,8 +24,5 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: validate
|
||||
- name: Validate Patterns
|
||||
run: pwsh scripts/validateAllPatterns.ps1
|
||||
|
||||
- name: test
|
||||
run: pwsh scripts/testPatterns.ps1
|
||||
Reference in New Issue
Block a user