From 46a92c5f6e422d2324d20a1e4732365f944d1430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Mei=C3=9Fner?= Date: Sat, 11 Jan 2025 13:04:23 +0100 Subject: [PATCH] Upgrade packages before phpipam-action Upgrading docker and docker-compose before running phpipam-action. Try to fix #9 with this step. --- .github/workflows/main.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7a8ea17..76bb817 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,8 @@ jobs: check: runs-on: ubuntu-latest steps: + - name: Upgrade docker stuff + run: sudo apt-get install --upgrade docker-compose - uses: actions/checkout@v2 - name: run phpipam-action uses: ./ # use action in the root directory @@ -33,14 +35,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - phpipam: ['1.4x','1.5x'] + phpipam: ['v1.4x','v1.5x'] steps: + - name: Upgrade docker stuff + run: sudo apt-get install --upgrade docker-compose - uses: actions/checkout@v2 - - name: run phpipam-action + - name: Run phpipam-action uses: ./ # use action in the root directory with: ipam_version: ${{ matrix.phpipam }} - - name: "Test phpipam api and database" + - name: "Test phpipam api" run: | curl -k --user Admin:ipamadmin -X POST https://localhost/api/ansible/user/ + - name: "Test database" + run: | mysql -h 127.0.01 -u ${{ env.IPAM_DATABASE_USER }} -p${{ env.IPAM_DATABASE_PASS }} ${{ env.IPAM_DATABASE_NAME }} --execute="SHOW TABLES"