mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-21 11:27:43 +00:00
[render skip] bump workflow versions (#111)
* [render skip] bump golang lint * bump golang * bump other actions * simplify workflow * simplify some more * specify golang version
This commit is contained in:
parent
60eb5db5f0
commit
fc0a0e2010
1 changed files with 7 additions and 20 deletions
27
.github/workflows/test.yml
vendored
27
.github/workflows/test.yml
vendored
|
@ -2,12 +2,7 @@ on: [push, pull_request]
|
||||||
name: Unit Tests
|
name: Unit Tests
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: "go ${{ matrix.go-version }} (${{ matrix.platform }})"
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
go-version: [1.18]
|
|
||||||
platform: [ubuntu-latest]
|
|
||||||
runs-on: ${{ matrix.platform }}
|
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: postgres://postgres:postgres@localhost/apollo_test
|
DATABASE_URL: postgres://postgres:postgres@localhost/apollo_test
|
||||||
services:
|
services:
|
||||||
|
@ -25,18 +20,10 @@ jobs:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
- name: Setup Go
|
|
||||||
uses: actions/setup-go@v2
|
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: 1.19.3
|
||||||
|
- uses: golangci/golangci-lint-action@v3
|
||||||
- name: Lint
|
- run: psql -f docs/schema.sql $DATABASE_URL
|
||||||
uses: golangci/golangci-lint-action@v2
|
- run: go test ./... -v -race -timeout 5s
|
||||||
|
|
||||||
- name: Setup database schema
|
|
||||||
run: psql -f docs/schema.sql $DATABASE_URL
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: go test ./... -v -race -timeout 5s
|
|
||||||
|
|
Loading…
Reference in a new issue