From da2d5c3351494034e18159ae0bde78636e299cb1 Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Fri, 13 Sep 2024 10:28:48 +0000 Subject: [PATCH] Add test workflow for publiccode parser --- .github/workflows/docker-image.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1a298b9..9b5d540 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 @@ -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 \ No newline at end of file + short_description: 'Hypoinvers 2000' \ No newline at end of file