-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
38 lines (37 loc) · 932 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
# https://github.com/golangci/golangci-lint
name: Continuous Integration
on:
push:
# prevent duplication of tests with
# `pull_request` event
branches:
- master
pull_request:
jobs:
golang_lint_and_test:
name: Code style and tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '^1.18'
- name: Run Golang CI Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: -E gofmt
- name: Run tests
run: go test ./...
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
with:
ignore_words_list: "actualy,nwe"
skip: "go.mod,go.sum"