parent
64dd6d5520
commit
67c1cb09ed
|
@ -83,29 +83,26 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
pkg:
|
||||||
|
- ./client ./cmd/buildctl ./worker/containerd ./solver ./frontend
|
||||||
|
- ./frontend/dockerfile
|
||||||
|
worker:
|
||||||
|
- containerd
|
||||||
|
- containerd-1.4
|
||||||
|
- containerd-snapshotter-stargz
|
||||||
|
- oci
|
||||||
|
- oci-rootless
|
||||||
|
- oci-snapshotter-stargz
|
||||||
|
typ:
|
||||||
|
- integration
|
||||||
|
- dockerfile
|
||||||
|
exclude:
|
||||||
|
- pkg: ./client ./cmd/buildctl ./worker/containerd ./solver ./frontend
|
||||||
|
typ: dockerfile
|
||||||
include:
|
include:
|
||||||
-
|
- pkg: ./...
|
||||||
pkg: ./client
|
|
||||||
typ: integration
|
|
||||||
-
|
|
||||||
pkg: ./cmd/buildctl ./worker/containerd
|
|
||||||
typ: integration
|
|
||||||
-
|
|
||||||
pkg: ./solver
|
|
||||||
typ: integration
|
|
||||||
-
|
|
||||||
pkg: ''
|
|
||||||
skip-integration-tests: 1
|
skip-integration-tests: 1
|
||||||
typ: integration gateway
|
typ: integration gateway
|
||||||
-
|
|
||||||
pkg: ./frontend
|
|
||||||
typ: ''
|
|
||||||
-
|
|
||||||
pkg: ./frontend/dockerfile
|
|
||||||
typ: ''
|
|
||||||
-
|
|
||||||
pkg: ./frontend/dockerfile
|
|
||||||
typ: dockerfile
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
|
@ -135,14 +132,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
|
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
|
||||||
-
|
-
|
||||||
name: Test ${{ matrix.pkg }} ${{ matrix.typ }}
|
name: Test pkg=${{ matrix.pkg }} ; typ=${{ matrix.typ }} ; skipit=${{ matrix.skip-integration-tests }} ; worker=${{ matrix.worker }}
|
||||||
run: |
|
run: |
|
||||||
|
export TESTFLAGS="-v --parallel=6 --timeout=20m"
|
||||||
|
if [ -n "${{ matrix.worker }}" ]; then
|
||||||
|
export TESTFLAGS="${TESTFLAGS} --run=//worker=${{ matrix.worker }}$"
|
||||||
|
fi
|
||||||
./hack/test ${{ matrix.typ }}
|
./hack/test ${{ matrix.typ }}
|
||||||
mv ./coverage/coverage.txt ./coverage/coverage-${{ github.job }}-$(echo "${{ matrix.coverage-pkg }}-${{ matrix.skip-integration-tests }}-${{ matrix.typ }}" | tr -dc '[:alnum:]-\n\r' | tr '[:upper:]' '[:lower:]').txt
|
mv ./coverage/coverage.txt ./coverage/coverage-${{ github.job }}-$(echo "${{ matrix.pkg }}-${{ matrix.skip-integration-tests }}-${{ matrix.typ }}-${{ matrix.worker }}" | tr -dc '[:alnum:]-\n\r' | tr '[:upper:]' '[:lower:]').txt
|
||||||
env:
|
env:
|
||||||
TEST_COVERAGE: 1
|
TEST_COVERAGE: 1
|
||||||
TESTPKGS: ${{ matrix.pkg }}
|
TESTPKGS: ${{ matrix.pkg }}
|
||||||
TESTFLAGS: -v --parallel=6 --timeout=20m
|
|
||||||
SKIP_INTEGRATION_TESTS: ${{ matrix.skip-integration-tests }}
|
SKIP_INTEGRATION_TESTS: ${{ matrix.skip-integration-tests }}
|
||||||
CACHEDIR_FROM: /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }} /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
|
CACHEDIR_FROM: /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }} /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
|
||||||
-
|
-
|
||||||
|
|
Loading…
Reference in New Issue