Skip to content

Commit

Permalink
simplify ci more
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Oct 15, 2023
1 parent a374cfd commit 2db9c76
Showing 1 changed file with 8 additions and 37 deletions.
45 changes: 8 additions & 37 deletions .github/workflows/backend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ on:
push:

jobs:
backend-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest

backend-test:
runs-on: ubuntu-latest

Expand All @@ -33,32 +21,15 @@ jobs:
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: "postgresql://default:default@localhost:5432/postgres?sslmode=disable"

steps:
- uses: actions/checkout@v2

- name: Setup go-task/task
uses: lukeshay/setup-task@v1

- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
cache: true
go-version: 1.19

- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: task backend

- name: Migrate
run: task seed

- name: Test
run: task backend:test
- run: go build ./cmd/backend
- run: go run ./cmd/seed
- run: go test ./...

1 comment on commit 2db9c76

@vercel
Copy link

@vercel vercel bot commented on 2db9c76 Oct 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.