Skip to content

Commit

Permalink
chore(ci): fixed the duplicating e2e run (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
icehaunter authored Apr 26, 2023
1 parent c183a65 commit 6ebe4cd
Showing 1 changed file with 0 additions and 82 deletions.
82 changes: 0 additions & 82 deletions .github/workflows/components_electric_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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_*

0 comments on commit 6ebe4cd

Please sign in to comment.