-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontinuous-integration-compiled-golang.yaml
More file actions
51 lines (42 loc) · 1.2 KB
/
continuous-integration-compiled-golang.yaml
File metadata and controls
51 lines (42 loc) · 1.2 KB
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
46
47
48
49
50
51
name: Continuous Integration (Golang)
on:
push:
branches:
- master
- develop
- hotfix/**
- feature/**
- renovate/**
- dependabot/**
paths:
- "languages/compiled/go.dev/**"
jobs:
ci:
name: Continuous Integration (Golang)
runs-on: ubuntu-latest
defaults:
run:
working-directory: languages/compiled/go.dev
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: languages/compiled/go.dev/go.work
- name: Cache Go modules
uses: actions/cache@v5
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && golangci-lint version
- name: Install Make
run: sudo apt-get update && sudo apt-get install -y make
- name: Run CI pipeline via Makefile
run: make ci
working-directory: languages/compiled/go.dev