summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: bd7984d7ad8a39f72de2b02693273f3bd6c05582 (plain)
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
name: ci

on:
  push:
    branches: [master, ci]
  pull_request:
    branches: [master]

jobs:
  ci:
    name: Tests
    runs-on: ubuntu-latest

    steps:
      - name: Check out code
        uses: actions/checkout@v4

      - name: Set up Go
        uses: actions/setup-go@v5
        with:
          go-version: "1.23.2"

      - name: Format code
        run: test -z $(go fmt ./...)

      - name: Run tests
        run: go test --cover ./...