Skip to content

Add GKE-backed DevSpace starter-pack target #9

Add GKE-backed DevSpace starter-pack target

Add GKE-backed DevSpace starter-pack target #9

Workflow file for this run

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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