From ed010a56de51aa78d96890bc194b0fcd99fdfa24 Mon Sep 17 00:00:00 2001 From: Mateusz Urbanek Date: Thu, 24 Oct 2024 21:30:30 +0200 Subject: [PATCH] ci: add integration tests Signed-off-by: Mateusz Urbanek --- .github/workflows/semantic-pr.yaml | 3 +++ .github/workflows/tests.yaml | 9 ++++++--- Makefile | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/semantic-pr.yaml b/.github/workflows/semantic-pr.yaml index 7bcf129..a037ac3 100644 --- a/.github/workflows/semantic-pr.yaml +++ b/.github/workflows/semantic-pr.yaml @@ -1,4 +1,5 @@ name: semantic-pr + on: pull_request_target: types: @@ -6,8 +7,10 @@ on: - reopened - edited - synchronize + permissions: pull-requests: read + jobs: pr-title: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index eb5784f..c7c891d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,7 +8,7 @@ on: - "main" jobs: - unit: + unit-integration: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -16,8 +16,11 @@ jobs: with: go-version-file: ./go.mod cache: false - - run: | - make test + - env: + LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }} + run: | + make \ + test-integration e2e: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index c42fb6e..a35c011 100644 --- a/Makefile +++ b/Makefile @@ -89,8 +89,8 @@ build: generate # Build the binary. generate-docs: helm-docs ## Run kube-linter on Kubernetes manifests. $(HELM_DOCS) --badge-style=flat -.PHONY: generate-schema -generate-schema: helm-values-schema-json ## Run generate schema for Helm Chart values. +.PHONY: generate-schemas +generate-schemas: helm-values-schema-json ## Run generate schema for Helm Chart values. $(HELM_VALUES_SCHEMA_JSON) \ -draft=7 \ -indent=2 \