🔧 Add dependencies #6
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: Tests | |
on: push | |
jobs: | |
actions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Copia repositorio | |
uses: actions/checkout@main | |
- name: Construye imagen | |
run: docker build --tag islasgeci/geci_diversity --tag islasgeci/geci_diversity:${GITHUB_SHA:0:4} . | |
- name: Verifica el formato | |
run: docker run islasgeci/geci_diversity make check | |
- name: Corre pruebas y evalúa cobertura | |
run: docker run islasgeci/geci_diversity make coverage | |
- name: Corre mutation testing | |
run: docker run islasgeci/geci_diversity make mutants | |
- name: Create/Update tag | |
uses: rickstaa/[email protected] | |
with: | |
tag: "latest" | |
message: "Latest release" | |
force_push_tag: true | |
- name: Docker log-in | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin | |
- name: Sube latest a Docker Hub | |
run: docker push islasgeci/geci_diversity:latest | |
- name: Sube sha a Docker Hub | |
run: docker push islasgeci/geci_diversity:${GITHUB_SHA:0:4} |