-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (32 loc) · 750 Bytes
/
ci.yml
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
34
35
36
37
38
39
40
41
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "ci"
on:
pull_request:
branches:
- "main"
workflow_dispatch:
permissions:
contents: "write"
env:
GO_VERSION: 1.19
jobs:
ci:
name: "ci"
runs-on: "ubuntu-latest"
steps:
- name: "checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 0
- name: "setup go"
uses: "actions/setup-go@v3"
with:
go-version: ${{ env.GO_VERSION }}
- name: "lint"
uses: "golangci/golangci-lint-action@v3"
with:
version: "latest"
- name: "test"
run: |
export GH_HOST=github.com
go test -race -covermode=atomic -v ./...