Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DM-39735] Split up validators into two jobs #127

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/felislint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
run: pip install -r requirements.txt
working-directory: ./tap-schema

- name: Validate YAML files
id: validate-yaml
run: ./validator ../yml/*.yaml
working-directory: ./tap-schema

- name: Validate YAML files using felis
id: validate-felis
run: ./felis-validate
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: YAML Validator

"on": [push]

jobs:
build:
runs-on: ubuntu-latest

# Only do Docker builds of ticket branches and tagged releases.
if: startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/tickets/')

steps:
- name: Check out repo
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
cache: "pip"

- name: Install dependencies
id: depend
run: pip install -r requirements.txt
working-directory: ./tap-schema

- name: Validate YAML files
id: validate-yaml
run: ./validator ../yml/*.yaml
working-directory: ./tap-schema