diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b3529ba..78e4635 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,11 +58,11 @@ jobs: CGO_ENABLED: 0 LDFLAGS: -s -w -X gh.tarampamp.am/error-pages/internal/appmeta.version=${{ steps.slug.outputs.commit-hash-short }} run: go build -trimpath -ldflags "$LDFLAGS" -o ./error-pages ./cmd/error-pages/ - - if: matrix.os == runner.os && matrix.arch == runner.arch + - if: ${{ matrix.os == runner.os && matrix.arch == runner.arch }} run: ./error-pages --version && ./error-pages -h - - if: matrix.os == runner.os && matrix.arch == runner.arch + - if: ${{ matrix.os == runner.os && matrix.arch == runner.arch }} run: mkdir ./out && ./error-pages --log-level=debug build --index --target-dir ./out - - if: matrix.os == runner.os && matrix.arch == runner.arch + - if: ${{ matrix.os == runner.os && matrix.arch == runner.arch }} run: | test -f ./out/index.html test -f ./out/ghost/404.html