Skip to content

✨ Add file provider for kubeconfig on the filesystem #233

✨ Add file provider for kubeconfig on the filesystem

✨ Add file provider for kubeconfig on the filesystem #233

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, edited, synchronize, reopened]
branches:
- main
permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
# Optional: Allow write access to checks to allow the action to annotate code in the PR.
checks: write
jobs:
golangci-lint-matrix:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
working-directory:
- ""
- examples/kind
- providers/kind
- examples/cluster-api
- providers/cluster-api
- examples/cluster-inventory-api
- providers/cluster-inventory-api
- examples/file
- providers/file
name: golangci-lint [${{ matrix.working-directory }}]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
- name: Calculate go version
id: vars
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # tag=v5.5.0
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # tag=v8.0.0
with:
version: v2.1.1
working-directory: ${{matrix.working-directory}}
golangci-lint: # aggregate the results of the matrix job. This we can depend on in the branch protection rule.
name: golangci-lint
runs-on: ubuntu-latest
needs:
- golangci-lint-matrix
if: (failure() || success()) && !contains(needs.golangci-lint-matrix.result, 'skipped')
steps:
- name: noop
run: exit 1
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
test:
name: make test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
- name: Calculate go version
id: vars
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # tag=v5.5.0
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: make test
run: MAKEFLAGS="-s" make test
verify-modules:
name: make verify-modules
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # tag=v5.0.0
- name: Calculate go version
id: vars
run: echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # tag=v5.5.0
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: make verify-modules
run: MAKEFLAGS="-s" make verify-modules