4 files changed,
42 insertions(+),
0 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2024-06-13 12:23:10 +0300
Parent:
42ac36c
A
.github/dependabot.yml
@@ -0,0 +1,7 @@
+version: 2 +updates: + - directory: / + open-pull-requests-limit: 3 + package-ecosystem: gomod + schedule: + interval: weekly
A
.github/workflows/golang.yml
@@ -0,0 +1,33 @@
+name: golang + +on: + push: + branches: [main] + pull_request: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + cache-dependency-path: go.mod + + - name: Golangci Lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + args: ./... + + - name: Build API + run: go build -o .bin/onasty ./cmd/server/ + + - name: Unit tests + run: go test -v --short ./... + + - name: e2e tests + run: go test -v ./e2e/
A
migrations/000000001_setup_extensions.down.sql
@@ -0,0 +1,1 @@
+DROP EXTENSION IF EXISTS "uuid-ossp";
A
migrations/000000001_setup_extensions.up.sql
@@ -0,0 +1,1 @@
+CREATE EXTENSION IF NOT EXISTS "uuid-ossp";