From 5f01090ebbd1f3cef5d9d3b8d2ee4217ea5b41da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez=20de=20la=20Franca=20Beltran?= Date: Mon, 11 Nov 2024 00:07:43 +0100 Subject: [PATCH] Run acceptance tests as part of the CI --- .github/workflows/main.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7ba8526..85c78c9 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,23 +1,27 @@ name: Test & Build on: + pull_request: push: paths: - 'cmd/**' - 'internal/**' + - 'acceptance/**' jobs: build: runs-on: ubuntu-latest strategy: matrix: - go: ['1.20'] + go: [ '1.20' ] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - name: Check out the source code + uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - - name: Run Tests... + - name: Run unit tests run: go test -v -vet=off -race ./... - - name: Build... - run: go build -race cmd/killgrave/main.go \ No newline at end of file + - name: Run acceptance tests + run: make acceptance \ No newline at end of file