update: Simplify Resource View section #807
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build-website: | |
name: "Build website" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Get kubectl version | |
run: | | |
source hack/lib/kubectl-version.sh | |
echo "Using kubectl ${KUBECTL_VERSION}" | |
echo "KUBECTL_VERSION=$KUBECTL_VERSION" >> $GITHUB_ENV | |
- uses: azure/setup-kubectl@v4 | |
with: | |
version: "${{ env.KUBECTL_VERSION }}" | |
id: install | |
- name: Run website build | |
working-directory: website | |
run: | | |
export LAB_TIMES_ENABLED='true' | |
npm install | |
npm run build | |
build-lab: | |
name: "Build lab" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Make shell | |
env: | |
SKIP_CREDENTIALS: 1 | |
run: | | |
bash hack/exec.sh '' 'ls -la' | |
pre-commit: | |
name: "Pre-commit hooks" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Setup TFLint | |
uses: terraform-linters/setup-tflint@v4 | |
- name: Setup terraform-docs | |
uses: jaxxstorm/[email protected] | |
with: | |
repo: terraform-docs/terraform-docs | |
- uses: pre-commit/[email protected] | |
spell-check: | |
name: "Spell checker" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: | | |
npx cspell lint "website/docs/**/*.md" | |
terraform-validate: | |
name: "Validate Terraform" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: "~1.9.0" | |
- run: | | |
bash hack/validate-terraform.sh |