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
|
- name: Run unit tests
|
||||||
run: pnpm test:unit
|
run: pnpm test:unit
|
||||||
|
|
||||||
component-tests:
|
build-test-image:
|
||||||
runs-on: ubuntu-docker-dind
|
runs-on: ubuntu-docker-dind
|
||||||
container:
|
container:
|
||||||
image: git.byting-pandas.ninja/ci/node22-docker:latest
|
image: git.byting-pandas.ninja/ci/node22-docker:latest
|
||||||
@@ -81,15 +81,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- run: corepack enable
|
- name: Build and push test image
|
||||||
- run: corepack prepare pnpm@11.11.0 --activate
|
|
||||||
|
|
||||||
- run: pnpm install --frozen-lockfile
|
|
||||||
|
|
||||||
- name: Verify Docker availability
|
|
||||||
run: |
|
run: |
|
||||||
docker --version
|
docker login git.byting-pandas.ninja -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }}
|
||||||
docker compose version
|
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)
|
component-tests:
|
||||||
run: pnpm test:component
|
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