Skip to content

Commit

Permalink
ci: Adds CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofpp authored and Douglas019BR committed Aug 14, 2024
1 parent e95843e commit 904a8d3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Integration

on:
pull_request:
branches:
- main

env:
DOCKER_IMAGE: alvarofpp/app:${{ github.sha }}

jobs:
lint:
runs-on: ubuntu-latest
container:
image: alvarofpp/linter:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
- run: lint-commit origin/main
- run: lint-markdown
- run: lint-dockerfile
- run: lint-yaml
- run: lint-shell-script
- run: lint-python
tests:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: docker build -t $DOCKER_IMAGE .
- run: |
docker run --rm -v $(pwd):/app $DOCKER_IMAGE /bin/bash -c \
"pytest --cov=validate_docbr/"

0 comments on commit 904a8d3

Please sign in to comment.