-
Notifications
You must be signed in to change notification settings - Fork 71
45 lines (43 loc) · 1.27 KB
/
enterprise.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
42
43
44
45
---
name: EnterpriseBuild
on:
push:
branches: [postee-for-enterprise]
pull_request:
branches: [postee-for-enterprise]
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4 # v2.1.5
with:
go-version: ^1.17
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 # v2.5.2
with:
args: --verbose
version: latest
- name: check spell
uses: codespell-project/actions-codespell@master
with:
skip: src,rego-templates,ui,go.mod,go.sum
- name: Build
run: make all
test:
name: Test
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4 # v2.1.5
with:
go-version: ^1.17
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
- name: Test
run: make test