-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (38 loc) · 1.1 KB
/
go.yaml
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
name: Github Actions
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: CI Preparation
run: |
arch=$(go env GOARCH)
os=$(go env GOOS)
curl -L https://get.helm.sh/helm-v3.7.2-${os}-${arch}.tar.gz | tar -xz -C /tmp
chmod u+x /tmp/${os}-${arch}/helm && sudo mv /tmp/${os}-${arch}/helm /usr/local/bin/helm
- name: CI script
run: |
find ./charts | grep Chart.yaml | xargs dirname | xargs helm lint
- name: check chart
run: |
helm template charts/juicefs-csi-driver
rst=$?
if [ $rst -ne 0 ]; then
echo "something wrong in juicefs csi driver chart"
exit 1
fi
helm template charts/juicefs-s3-gateway
rst=$?
if [ $rst -ne 0 ]; then
echo "something wrong in juicefs s3 gateway chart"
exit 1
fi