test: run tests against docker image (#664)

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Emrik Östling
2026-10-06 17:45:45 +02:00
committed by GitHub
parent 7fa8c9819e
commit 36cee01dde
7 changed files with 97 additions and 165 deletions
+15
View File
@@ -74,6 +74,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and load for testing
if: matrix.platform == 'linux/amd64'
uses: docker/build-push-action@v7
with:
context: .
platforms: ${{ matrix.platform }}
load: true
tags: convertx:test
cache-from: type=gha,scope=${{ matrix.platform }}
cache-to: type=gha,mode=max,scope=${{ matrix.platform }}
- name: Run integration tests
if: matrix.platform == 'linux/amd64'
run: docker run --rm -v ./tests:/app/tests -v ./src:/app/src -v ./package.json:/app/package.json convertx:test bun test tests/integration
- name: Build and push by digest
id: build
uses: docker/build-push-action@v7
+2 -2
View File
@@ -29,5 +29,5 @@ jobs:
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test
- name: Run unit tests
run: bun run test