From 1965b0891c6159e8cb84e6101bd1720635be79cb Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Tue, 4 Apr 2023 13:38:03 +0400 Subject: [PATCH] Add e2e tests to CI --- .github/workflows/build.yaml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 51f0a3c28..de4c0c79a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -32,10 +32,10 @@ jobs: go-version: ${{ matrix.go }} - name: Build - run: go get -v . + run: go get -v ./... - name: Run tests - run: go test + run: go test ./... examples: runs-on: ubuntu-latest @@ -69,9 +69,22 @@ jobs: with: go-version: 1.x - - name: Check formatting + - name: Check root uses: Jerome1337/gofmt-action@v1.0.5 with: + gofmt-path: . + gofmt-flags: '-s -l' + + - name: Check e2e + uses: Jerome1337/gofmt-action@v1.0.5 + with: + gofmt-path: e2e + gofmt-flags: '-s -l' + + - name: Check examples + uses: Jerome1337/gofmt-action@v1.0.5 + with: + gofmt-path: _examples gofmt-flags: '-s -l' linters: @@ -91,6 +104,7 @@ jobs: uses: golangci/golangci-lint-action@v3 with: version: v1.51.2 + args: ./... - name: Run linters for examples uses: golangci/golangci-lint-action@v3