-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 924 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
jobs:
setup:
name: CI
runs-on: ubuntu-latest
steps:
# https://github.com/marketplace/actions/checkout`
- name: Checkout Repo
uses: actions/checkout@v3
# https://github.com/marketplace/actions/setup-go-environment
- name: Set up Go 1.x >= 1.18
uses: actions/setup-go@v3
with:
# requires go.sum file (i.e., external libraries)
cache: true
go-version-file: go.mod
# https://github.com/marketplace/actions/run-golangci-lint#how-to-use
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
- name: go test
run: go test -v ./...
- name: Install yamllint
run: pip install yamllint
- name: Lint YAML files
run: yamllint .
name: CI
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- master
workflow_call:
permissions:
contents: read