Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
- We need to initialize the native Terraform repo first

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
  • Loading branch information
ulucinar committed Oct 15, 2021
1 parent 291f687 commit 2a2728b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
restore-keys: ${{ runner.os }}-pkg-

- name: Vendor Dependencies
run: make vendor vendor.check
run: make provider-tf-azure.vendor vendor.check

# Go version coming with golangci-lint-action may not be our desired
# go version. We deploy our desired go version and then skip go
Expand All @@ -82,6 +82,7 @@ jobs:
with:
version: ${{ env.GOLANGCI_VERSION }}
skip-go-installation: true
args: --timeout 10m

check-diff:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -118,7 +119,7 @@ jobs:
restore-keys: ${{ runner.os }}-pkg-

- name: Vendor Dependencies
run: make vendor vendor.check
run: make provider-tf-azure.vendor vendor.check

- name: Check Diff
run: make check-diff
Expand Down Expand Up @@ -161,7 +162,7 @@ jobs:
restore-keys: ${{ runner.os }}-pkg-

- name: Vendor Dependencies
run: make vendor vendor.check
run: make provider-tf-azure.vendor vendor.check

- name: Run Unit Tests
run: make -j2 test
Expand Down Expand Up @@ -222,7 +223,7 @@ jobs:
${{ runner.os }}-pkg-
- name: Vendor Dependencies
run: make vendor vendor.check
run: make provider-tf-azure.vendor vendor.check

- name: Build Helm Chart
run: make -j2 build
Expand Down Expand Up @@ -283,7 +284,7 @@ jobs:
restore-keys: ${{ runner.os }}-pkg-

- name: Vendor Dependencies
run: make vendor vendor.check
run: make provider-tf-azure.vendor vendor.check

- name: Build Artifacts
run: make -j2 build.all
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
deadline: 2m
deadline: 10m

skip-files:
- "zz_generated\\..+\\.go$"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ reviewable: prepare.azurerm
test: prepare.azurerm
generate: codegen.pipeline
build: prepare.azurerm

provider-tf-azure.vendor: prepare.azurerm vendor

# must match Docker build file env. variable TERRAFORM_PROVIDER_AZURERM_VERSION in
# cluster/images/provider-tf-azure-controller/Dockerfile
Expand Down

0 comments on commit 2a2728b

Please sign in to comment.