From fc0a0e20100b8a5a01b0a2f19622cf41b0951ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Medeiros?= Date: Wed, 16 Nov 2022 13:29:25 -0500 Subject: [PATCH] [render skip] bump workflow versions (#111) * [render skip] bump golang lint * bump golang * bump other actions * simplify workflow * simplify some more * specify golang version --- .github/workflows/test.yml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f033335..1b92535 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,12 +2,7 @@ on: [push, pull_request] name: Unit Tests jobs: test: - name: "go ${{ matrix.go-version }} (${{ matrix.platform }})" - strategy: - matrix: - go-version: [1.18] - platform: [ubuntu-latest] - runs-on: ${{ matrix.platform }} + runs-on: ubuntu-latest env: DATABASE_URL: postgres://postgres:postgres@localhost/apollo_test services: @@ -25,18 +20,10 @@ jobs: - 5432:5432 steps: - - uses: actions/checkout@v2 - - - name: Setup Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 with: - go-version: ${{ matrix.go-version }} - - - name: Lint - uses: golangci/golangci-lint-action@v2 - - - name: Setup database schema - run: psql -f docs/schema.sql $DATABASE_URL - - - name: Test - run: go test ./... -v -race -timeout 5s + go-version: 1.19.3 + - uses: golangci/golangci-lint-action@v3 + - run: psql -f docs/schema.sql $DATABASE_URL + - run: go test ./... -v -race -timeout 5s