Skip to content

Commit

Permalink
Merge pull request #431 from jsturtevant/update-actions
Browse files Browse the repository at this point in the history
Update gh actions to latest versions
  • Loading branch information
jsturtevant authored May 16, 2024
2 parents 1103631 + 4da86f6 commit 4197413
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
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

0 comments on commit 4197413

Please sign in to comment.