fix(ci-runner): Build and push Dockerfile.test image, run component tests against it
This commit is contained in:
@@ -68,7 +68,7 @@ jobs:
|
||||
- name: Run unit tests
|
||||
run: pnpm test:unit
|
||||
|
||||
component-tests:
|
||||
build-test-image:
|
||||
runs-on: ubuntu-docker-dind
|
||||
container:
|
||||
image: git.byting-pandas.ninja/ci/node22-docker:latest
|
||||
@@ -81,15 +81,21 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: corepack enable
|
||||
- run: corepack prepare pnpm@11.11.0 --activate
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Verify Docker availability
|
||||
- name: Build and push test image
|
||||
run: |
|
||||
docker --version
|
||||
docker compose version
|
||||
docker login git.byting-pandas.ninja -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }}
|
||||
docker build -t git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }} -f Dockerfile.test .
|
||||
docker push git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }}
|
||||
|
||||
- name: Run component tests (Docker)
|
||||
run: pnpm test:component
|
||||
component-tests:
|
||||
needs: build-test-image
|
||||
runs-on: ubuntu-docker-dind
|
||||
container:
|
||||
image: git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }}
|
||||
credentials:
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
steps:
|
||||
- name: Run component tests (Playwright)
|
||||
working-directory: packages/luna-charts
|
||||
run: pnpm test:browser
|
||||
Reference in New Issue
Block a user