From 6ebe4cdaecc2dc2a47bc65f25a33bdeaacf1f5ed Mon Sep 17 00:00:00 2001 From: Ilia Borovitinov Date: Wed, 26 Apr 2023 12:03:07 +0300 Subject: [PATCH] chore(ci): fixed the duplicating e2e run (#134) --- .../workflows/components_electric_tests.yml | 82 ------------------- 1 file changed, 82 deletions(-) diff --git a/.github/workflows/components_electric_tests.yml b/.github/workflows/components_electric_tests.yml index 32f1a8a2..21fb4aa3 100644 --- a/.github/workflows/components_electric_tests.yml +++ b/.github/workflows/components_electric_tests.yml @@ -165,85 +165,3 @@ jobs: run: make dialyzer - name: Check formatting run: make check-format - - e2e_tests: - name: E2E tests - runs-on: ubuntu-latest - needs: deps - defaults: - run: - working-directory: e2e - env: - VAXINE_IMAGE: europe-docker.pkg.dev/vaxine/vaxine-io/vaxine:latest - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - fetch-depth: 0 - - - name: Inject slug/short variables - uses: rlespinasse/github-slug-action@v4 - - name: Log in to the Container registry - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - uses: erlef/setup-beam@v1 - with: - otp-version: ${{ env.OTP_VERSION }} - elixir-version: ${{ env.ELIXIR_VERSION }} - - - name: Restore dependencies - id: cache-deps - uses: actions/cache/restore@v3 - with: - path: components/electric/deps - key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }} - - - name: Restore compiled code - id: cache-build - uses: actions/cache/restore@v3 - with: - path: | - components/electric/_build/*/lib - !components/electric/_build/*/lib/electric - key: ${{ runner.os }}-mixbuild-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('components/electric/**/mix.lock') }} - - - run: | - echo "ELECTRIC_VERSION=$(make --silent print_version_from_git)" >> $GITHUB_ENV - working-directory: components/electric - - run: make docker-build-ci - env: - ELECTRIC_IMAGE_NAME: ghcr.io/${{ github.repository }}/electric - working-directory: components/electric - - run: make pretest_compile - working-directory: components/electric - - - name: Cache built lux - uses: actions/cache@v3 - with: - path: | - e2e/lux/bin - e2e/lux/ebin - e2e/lux/priv - key: ${{ runner.os }}-luxbuilt-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }} - - - run: make lux - - - run: make vaxine - - - run: make postgres - - - run: make test - id: tests - env: - ELECTRIC_IMAGE_NAME: ghcr.io/${{ github.repository }}/electric - ELECTRIC_IMAGE_TAG: ${{ env.ELECTRIC_VERSION }} - - - name: Upload lux logs - uses: actions/upload-artifact@v3 - if: ${{ always() }} - with: - name: lux_logs - path: e2e/lux_logs/run_*