diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9bb84585ee39ec632656a1ac64020f6c15311fa3..4b8598eea0c37f7dbdd443b8cf585f2b4f2d0fe9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,19 @@ jobs: run: | curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s ./bin/golangci-lint run -v + test: + runs-on: ubuntu-latest + needs: lint + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v1 + with: + go-version: 1.15 + - run: ./scripts/start-gitea.sh + - run: go test -v ./... build: runs-on: ${{ matrix.os }} - needs: lint + needs: test strategy: fail-fast: true matrix: @@ -29,8 +39,6 @@ jobs: with: go-version: 1.15 - run: go build ./cmd/provider-git/ - - run: ./scripts/start-gitea.sh - - run: go test -v ./... release: runs-on: ubuntu-latest needs: build