ci: use string type for experimental so it can appear on actions page

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-04-11 09:51:38 +02:00
parent b9c5f9f1ee
commit e04637cf34
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
1 changed files with 8 additions and 6 deletions

View File

@ -51,9 +51,9 @@ jobs:
- remote
pkg:
- ./tests
experimental:
mode:
- ""
- 1
- experimental
include:
- worker: docker
pkg: ./tests
@ -61,15 +61,15 @@ jobs:
pkg: ./tests
- worker: docker
pkg: ./tests
experimental: 1
mode: experimental
- worker: docker+containerd # same as docker, but with containerd snapshotter
pkg: ./tests
experimental: 1
mode: experimental
steps:
-
name: Prepare
run: |
echo "TESTREPORTS_NAME=${{ github.job }}-$(echo "${{ matrix.pkg }}-${{ matrix.buildkit }}-${{ matrix.worker }}-${{ matrix.experimental }}" | tr -dc '[:alnum:]-\n\r' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
echo "TESTREPORTS_NAME=${{ github.job }}-$(echo "${{ matrix.pkg }}-${{ matrix.buildkit }}-${{ matrix.worker }}-${{ matrix.mode }}" | tr -dc '[:alnum:]-\n\r' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
if [ -n "${{ matrix.buildkit }}" ]; then
echo "TEST_BUILDKIT_TAG=${{ matrix.buildkit }}" >> $GITHUB_ENV
fi
@ -85,6 +85,9 @@ jobs:
if [[ "${{ matrix.worker }}" == "docker"* ]]; then
echo "TEST_DOCKERD=1" >> $GITHUB_ENV
fi
if [ "${{ matrix.mode }}" = "experimental" ]; then
echo "TEST_BUILDX_EXPERIMENTAL=1" >> $GITHUB_ENV
fi
-
name: Checkout
uses: actions/checkout@v4
@ -113,7 +116,6 @@ jobs:
./hack/test
env:
TEST_REPORT_SUFFIX: "-${{ env.TESTREPORTS_NAME }}"
TEST_BUILDX_EXPERIMENTAL: ${{ matrix.experimental }}
TESTPKGS: "${{ matrix.pkg }}"
-
name: Send to Codecov