🗃️⚗️ add data for tests #32
Workflow file for this run
This file contains hidden or 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/bycatch . | |
| - name: Verifica el formato | |
| run: docker run islasgeci/bycatch make check | |
| - name: Corre pruebas y evalúa cobertura | |
| run: docker run islasgeci/bycatch make coverage | |
| - name: Corre mutation testing | |
| run: docker run islasgeci/bycatch 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 -u "${DOCKER_USERNAME}" --password-stdin | |
| - name: Push latest Docker image to Docker Hub | |
| run: docker push islasgeci/bycatch:latest | |
| - name: Push SHA tag to Docker Hub | |
| run: | | |
| docker tag islasgeci/bycatch:latest islasgeci/bycatch:${GITHUB_SHA:0:4} | |
| docker push islasgeci/bycatch:${GITHUB_SHA:0:4} |