From a6b4b3bf347903ba43946236f9d5b661671824f9 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Fri, 8 Mar 2024 15:27:31 -0700 Subject: [PATCH] ci: run tests with goolm as well Co-authored-by: Tulir Asokan Signed-off-by: Sumner Evans --- .github/workflows/go.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 488e4dd5..66f6aee1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -35,7 +35,7 @@ jobs: fail-fast: false matrix: go-version: ["1.21", "1.22"] - name: Build ${{ matrix.go-version == '1.22' && '(latest)' || '(old)' }} + name: Build (${{ matrix.go-version == '1.22' && 'latest' || 'old' }}, libolm) steps: - uses: actions/checkout@v4 @@ -59,3 +59,31 @@ jobs: - name: Test run: go test -json -v ./... 2>&1 | gotestfmt + + build-goolm: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go-version: ["1.21", "1.22"] + name: Build (${{ matrix.go-version == '1.22' && 'latest' || 'old' }}, goolm) + + steps: + - uses: actions/checkout@v4 + + - name: Set up Go ${{ matrix.go-version }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + cache: true + + - name: Set up gotestfmt + uses: GoTestTools/gotestfmt-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build + run: go build -tags=goolm -v ./... + + - name: Test + run: go test -tags=goolm -json -v ./... 2>&1 | gotestfmt