Update #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install yamllint | |
- name: Verify yamls | |
run: | | |
yamllint -sd relaxed . | |
- name: Build docker-compose | |
run: | | |
docker-compose pull | |
- name: Run the docker-compose | |
run: docker-compose run databases | |
- name: Verify input data | |
run: > | |
docker-compose run check scan -d input_db | |
-c /sodacl/configuration.yaml | |
/sodacl/checks_for_input_db.yaml | |
- name: Verify output data | |
run: > | |
docker-compose run check scan -d output_db | |
-c /sodacl/configuration.yaml | |
/sodacl/checks_for_empty_db.yaml |