FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cache-handler/.github/workflows/ci.yml at master · FlyInkTV/cache-handler · GitHub
FlyInkTV
cache-handler
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cache-handler
/
.github
/
workflows
/
ci.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
81 lines (68 loc) · 2.04 KB
Breadcrumbs
cache-handler
/
.github
/
workflows
/
ci.yml
Copy path
File metadata and controls
81 lines (68 loc) · 2.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name
:
Tests
on
:
push
:
branches
:
-
master
pull_request
:
branches
:
-
master
jobs
:
test
:
strategy
:
#
Default is true, cancels jobs for other platforms in the matrix if one fails
fail-fast
:
false
matrix
:
#
The Windows build currently fail because of https://github.com/golang/go/issues/40795, and because xcaddy isn't compatible with the known workaround
#
os: [ ubuntu-latest, macos-latest, windows-latest ]
os
:
[ ubuntu-latest, macos-latest ]
go
:
[ '1.24' ]
runs-on
:
${{ matrix.os }}
steps
:
-
name
:
Install Go
uses
:
actions/setup-go@v5
with
:
go-version
:
${{ matrix.go }}
-
name
:
Checkout code
uses
:
actions/checkout@v4
-
name
:
Print Go version and environment
id
:
vars
run
:
|
printf "Using go at: $(which go)\n"
printf "Go version: $(go version)\n"
printf "\n\nGo environment:\n\n"
go env
printf "\n\nSystem environment:\n\n"
env
# Calculate the short SHA1 hash of the git commit
echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
echo "::set-output name=go_cache::$(go env GOCACHE)"
-
name
:
Cache the build cache
uses
:
actions/cache@v4
with
:
path
:
${{ steps.vars.outputs.go_cache }}
key
:
${{ runner.os }}-${{ matrix.go }}-go-ci-${{ hashFiles('**/go.sum') }}
restore-keys
:
|
${{ runner.os }}-${{ matrix.go }}-go-ci
-
name
:
Install xcaddy
run
:
|
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest
-
name
:
Build
env
:
CGO_ENABLED
:
0
run
:
|
xcaddy build
-
name
:
Run tests
run
:
|
go test -v -coverprofile="cover-profile.out" -race ./...
golangci
:
name
:
Lint
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/setup-go@v5
with
:
go-version
:
'
1.24
'
-
name
:
golangci-lint
uses
:
golangci/golangci-lint-action@v8
with
:
args
:
--timeout 5m
Back
|
FazBrowse Home
|
New Git URL