From 2fedfb9980ad03fd7a4a05fd5b7ef7f3198c8d20 Mon Sep 17 00:00:00 2001 From: Ludovic Muller Date: Tue, 23 Apr 2024 14:14:03 +0200 Subject: [PATCH] ci: run tests --- .github/workflows/ci.yaml | 54 ------------------------------------- .github/workflows/test.yaml | 25 +++++++++++++++++ 2 files changed, 25 insertions(+), 54 deletions(-) delete mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 7d84c31..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build and push Docker image - -on: - push: - branches: - - "**" - tags: - - "v*.*.*" - -jobs: - docker: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Run tests - run: cd test && ./run.sh && cd .. - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Docker meta - uses: zazuko/action-docker-meta@main - id: docker_meta - with: - images: ghcr.io/zazuko/varnish-post - - - name: Build and push Docker images - id: docker_build - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.docker_meta.outputs.tags }} - labels: ${{ steps.docker_meta.outputs.labels }} - platforms: | - linux/amd64 - linux/arm64 - linux/ppc64le - linux/s390x - linux/arm/v7 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..bf9910c --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,25 @@ +name: Run tests + +on: + push: + branches: + - "**" + tags: + - "v*.*.*" + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Run tests + run: cd test && ./run.sh && cd ..