-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (69 loc) · 2.52 KB
/
Copy pathci.yml
File metadata and controls
86 lines (69 loc) · 2.52 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
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
82
83
84
85
86
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
DEVSPACE_VERSION: v6.3.15
HELM_VERSION: v3.18.3
YQ_VERSION: v4.45.4
jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"
- name: Install Helm unittest tooling
run: |
set -euo pipefail
mkdir -p "${RUNNER_TEMP}/bin"
echo "${RUNNER_TEMP}/bin" >> "${GITHUB_PATH}"
curl -fsSL "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" \
| tar -xz -C "${RUNNER_TEMP}"
mv "${RUNNER_TEMP}/linux-amd64/helm" "${RUNNER_TEMP}/bin/helm"
helm plugin install https://github.com/helm-unittest/helm-unittest
- name: Run pre-commit hooks
run: |
python -m pip install --upgrade pip
python -m pip install pre-commit==4.6.0
pre-commit run --all-files --show-diff-on-failure
devspace:
name: DevSpace config
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install DevSpace tooling
run: |
set -euo pipefail
mkdir -p "${RUNNER_TEMP}/bin"
echo "${RUNNER_TEMP}/bin" >> "${GITHUB_PATH}"
curl -fsSL -o "${RUNNER_TEMP}/bin/yq" \
"https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64"
chmod +x "${RUNNER_TEMP}/bin/yq"
curl -fsSL -o "${RUNNER_TEMP}/bin/devspace" \
"https://github.com/loft-sh/devspace/releases/download/${DEVSPACE_VERSION}/devspace-linux-amd64"
chmod +x "${RUNNER_TEMP}/bin/devspace"
- name: Validate DevSpace config
run: devspace print --skip-info --disable-profile-activation >/tmp/devspace.yaml
actionlint:
name: GitHub Actions lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: Lint workflows
run: go run github.com/rhysd/actionlint/cmd/actionlint@latest