all repos

onasty @ 4137dee2e4c044b00f9640746a52fc6bc37e6762

a one-time notes service

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

dependabot[bot] dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com
chore(deps): bump golangci/golangci-lint-action from 7 to 8 (#126)..., 1 year ago
1
name: golang
2
3
on:
4
  workflow_dispatch:
5
  push:
6
    branches: [main]
7
    paths: ["**.go", "go.mod", "go.sum"]
8
  pull_request:
9
    paths: ["**.go", "go.mod", "go.sum"]
10
11
jobs:
12
  release:
13
    runs-on: ubuntu-latest
14
    steps:
15
      - uses: actions/checkout@v4
16
17
      - name: Set up Go
18
        uses: actions/setup-go@v5
19
        with:
20
          go-version-file: go.mod
21
          cache-dependency-path: go.mod
22
23
      - name: Build API
24
        run: go build -o .bin/onasty ./cmd/api/
25
26
      - name: Build mailer service
27
        run: go build -o .bin/mailer ./mailer/
28
29
      - name: Unit tests
30
        run: go test -v --short ./...
31
32
      - name: e2e tests
33
        run: go test -v ./e2e/
34
35
  lint:
36
    runs-on: ubuntu-latest
37
    steps:
38
      - uses: actions/checkout@v4
39
      - name: Golangci Lint
40
        uses: golangci/golangci-lint-action@v8
41
        with:
42
          version: latest
43
          args: ./...