chore: initializing repository #3
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Run YAML linting | |
uses: ibiqlik/action-yamllint@v3 | |
with: | |
file_or_dir: | | |
*.yml | |
Up-Down: | |
runs-on: ubuntu-latest | |
needs: Lint | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Prepare empty volumes | |
run: | | |
mkdir -p .ci/volumes/postgres/data | |
mkdir -p .ci/volumes/redis/data | |
mkdir -p .ci/volumes/minio/data | |
mkdir -p .ci/volumes/varfish-static/data | |
- name: Bring up and shut down services | |
uses: isbang/[email protected] | |
with: | |
compose-file: docker-compose.yml | |
compose-flags: | | |
--env-file .env.ci | |
env: | |
DB_PASSWORD: "password" |