all repos

onasty @ a667923dac9b469d8e09c5ceb1e4f412d04faa6a

a one-time notes service
4 files changed, 42 insertions(+), 0 deletions(-)
chore: setup ci and dependabot
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2024-06-13 12:23:10 +0300
Authored at: 2024-06-13 00:36:32 +0300
Parent: 42ac36c
A .github/dependabot.yml
···
        
        1
        +version: 2

      
        
        2
        +updates:

      
        
        3
        +  - directory: /

      
        
        4
        +    open-pull-requests-limit: 3

      
        
        5
        +    package-ecosystem: gomod

      
        
        6
        +    schedule:

      
        
        7
        +      interval: weekly

      
A .github/workflows/golang.yml
···
        
        1
        +name: golang

      
        
        2
        +

      
        
        3
        +on:

      
        
        4
        +  push:

      
        
        5
        +    branches: [main]

      
        
        6
        +  pull_request:

      
        
        7
        +

      
        
        8
        +jobs:

      
        
        9
        +  release:

      
        
        10
        +    runs-on: ubuntu-latest

      
        
        11
        +    steps:

      
        
        12
        +      - uses: actions/checkout@v3

      
        
        13
        +

      
        
        14
        +      - name: Set up Go

      
        
        15
        +        uses: actions/setup-go@v4

      
        
        16
        +        with:

      
        
        17
        +          go-version-file: go.mod

      
        
        18
        +          cache-dependency-path: go.mod

      
        
        19
        +

      
        
        20
        +      - name: Golangci Lint

      
        
        21
        +        uses: golangci/golangci-lint-action@v3

      
        
        22
        +        with:

      
        
        23
        +          version: latest

      
        
        24
        +          args: ./...

      
        
        25
        +

      
        
        26
        +      - name: Build API

      
        
        27
        +        run: go build -o .bin/onasty ./cmd/server/

      
        
        28
        +

      
        
        29
        +      - name: Unit tests

      
        
        30
        +        run: go test -v --short ./...

      
        
        31
        +

      
        
        32
        +      - name: e2e tests

      
        
        33
        +        run: go test -v ./e2e/

      
A migrations/000000001_setup_extensions.down.sql
···
        
        1
        +DROP EXTENSION IF EXISTS "uuid-ossp";

      
A migrations/000000001_setup_extensions.up.sql
···
        
        1
        +CREATE EXTENSION IF NOT EXISTS "uuid-ossp";