Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gh actions to latest versions #431

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/capz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ on:
branches: [ "master" ]
paths:
- 'capz/**'
- '.github/workflows/capz.yml'
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# https://github.com/github/super-linter
- name: Lint Code Base
uses: github/super-linter@v4
uses: super-linter/super-linter@v6.5.0
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_BASH: true
Expand All @@ -29,8 +30,8 @@ jobs:
name: lint go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
cache: false # workaround for golangci-lint caching issues https://github.com/golangci/golangci-lint-action/pull/704
Expand All @@ -41,17 +42,17 @@ jobs:
go mod tidy
popd
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
working-directory: capz/gmsa/configuration
args: --build-tags=e2e --timeout=10m
build-gmsa-configuration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: build-gmsa-configuration
Expand All @@ -62,7 +63,7 @@ jobs:
capz-templates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: generate templates
run: |
cd capz
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/hyperv-webhook-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@ on:
- master
paths:
- helpers/hyperv-mutating-webhook/**
- .github/workflows/hyperv-webhook-build.yaml
workflow_dispatch: # for testing until workfload is validated

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: helpers/hyper-v-mutating-webhook/
steps:
- uses: actions/checkout@v2
- name: build image for ci
if: ${{ github.event_name == 'pull_request' }}
run: |
cd helpers/hyperv-mutating-webhook
make docker-build
- name: build image for release
if: ${{ github.event_name != 'pull_request' }}
Expand Down
Loading