Skip to content

Commit 351dad4

Browse files
committed
ci: Adds integration workflow
1 parent ac6dcdd commit 351dad4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/integration.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Integration
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
env:
10+
DOCKER_IMAGE: alvarofpp/app:${{ github.sha }}
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
container:
16+
image: alvarofpp/linter:latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
22+
- run: lint-commit origin/main
23+
- run: lint-markdown
24+
- run: lint-dockerfile
25+
- run: lint-yaml
26+
- run: lint-shell-script
27+
- run: lint-python
28+
tests:
29+
needs: lint
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
35+
- run: docker build -t $DOCKER_IMAGE .
36+
- run: docker run --rm -v $(pwd):/app $DOCKER_IMAGE /bin/bash -c "pytest --cov=app/"

0 commit comments

Comments
 (0)