all repos

onasty @ a667923dac9b469d8e09c5ceb1e4f412d04faa6a

a one-time notes service

onasty/.github/workflows/golang.yml(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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/