Skip to content

Commit

Permalink
Add test workflow for publiccode parser
Browse files Browse the repository at this point in the history
  • Loading branch information
vlauciani committed Sep 13, 2024
1 parent 39627f8 commit da2d5c3
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,23 @@ env:
IMAGE_NAME: ingv/hyp2000

jobs:
test_publiccode:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run publiccode parser
run: |
docker run -i --rm italia/publiccode-parser-go /dev/stdin < publiccode.yml
build_and_push_to_registry:
name: Build and Push Docker image to Docker Hub
runs-on: ubuntu-latest
needs: test_publiccode
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -73,17 +87,4 @@ jobs:
provider: dockerhub
destination_container_repo: ${{ env.IMAGE_NAME }}
readme_file: 'README.md'
short_description: 'Hypoinvers 2000'

test-publiccode:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run publiccode parser
run: |
docker run -i --rm italia/publiccode-parser-go /dev/stdin < publiccode.yml
short_description: 'Hypoinvers 2000'

0 comments on commit da2d5c3

Please sign in to comment.