build(deps): bump docker/metadata-action from 9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 to c1e51972afc2121e065aed6d45c65596fe445f3f #274
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
project: | |
name: Project Checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: './go.mod' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | |
with: | |
version: v2.1 | |
- name: Install Prerequisites | |
run: | | |
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash | |
GOBIN=${HOME}/.config/kustomize/plugin/policy.open-cluster-management.io/v1/policygenerator \ | |
go install open-cluster-management.io/policy-generator-plugin/cmd/PolicyGenerator@latest | |
- name: Build | |
run: make build | |
- name: Run unit tests | |
run: make test |