From 3ad01b92f77b61d9890dac4f461edc14592d9d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Paiva?= Date: Sun, 3 Mar 2024 19:58:40 -0300 Subject: [PATCH 1/5] ci: Adds CI workflow --- .github/workflows/integration.yml | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/integration.yml diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml new file mode 100644 index 0000000..71021de --- /dev/null +++ b/.github/workflows/integration.yml @@ -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/" From 53875f1534d126e903a197388d57728c73eb8b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Paiva?= Date: Wed, 31 Jul 2024 12:45:53 -0300 Subject: [PATCH 2/5] docs: Atualiza README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 90ab8ae..1096cf8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +> :warning: Estamos planejando a versão `2.0.0` do pacote. **Para saber as mudanças que estão por vir, leia a [issue #67](https://github.com/alvarofpp/validate-docbr/issues/67)**. Você também pode sugerir atualizações para o pacote na mesma issue, participe! :warning: + # validate-docbr From d2616e5286795029d4cfdf8464578bbe0cb5edbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Paiva?= Date: Wed, 14 Aug 2024 10:40:42 -0300 Subject: [PATCH 3/5] ci: Adiciona volume ao container de lint usado no workflow integration --- .github/workflows/integration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 71021de..764f466 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -14,6 +14,8 @@ jobs: runs-on: ubuntu-latest container: image: alvarofpp/linter:latest + volumes: + - ./:/app steps: - uses: actions/checkout@v4 with: From 3fd1f5f997ad8b8181b841ca3a96d9784e8f518f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Paiva?= Date: Wed, 14 Aug 2024 10:42:29 -0300 Subject: [PATCH 4/5] style: Conserta tamanho de linha no README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1096cf8..b290520 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ -> :warning: Estamos planejando a versão `2.0.0` do pacote. **Para saber as mudanças que estão por vir, leia a [issue #67](https://github.com/alvarofpp/validate-docbr/issues/67)**. Você também pode sugerir atualizações para o pacote na mesma issue, participe! :warning: - # validate-docbr latest release +> :warning: Estamos planejando a versão `2.0.0` do pacote. **Para saber as mudanças que estão por +> vir, leia a [issue #67](https://github.com/alvarofpp/validate-docbr/issues/67)**. +> Você também pode sugerir atualizações para o pacote na mesma issue, participe! :warning: + Pacote Python para validação de documentos brasileiros. Para instalar o pacote: From 9c923615bc7aca35a75d0e9fb40f93edb519dc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Paiva?= Date: Wed, 14 Aug 2024 10:44:22 -0300 Subject: [PATCH 5/5] style: Remove version de docker-compose.yml por ser obsoleto --- docker-compose.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5812f30..0837854 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,4 @@ --- -version: '3.8' - services: app: build: