-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·34 lines (34 loc) · 1.21 KB
/
Copy pathactions.yml
File metadata and controls
executable file
·34 lines (34 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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/action-create-tag@v1.5.4
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 four-digit week tag to Docker Hub
run: |
four_digit_week=$(date +%y%V)
docker tag islasgeci/bycatch:latest islasgeci/bycatch:${four_digit_week}
docker push islasgeci/bycatch:${four_digit_week}