From 8e9a56a0242d386821d6ec5bec2da06b04c2b4e4 Mon Sep 17 00:00:00 2001 From: Guillaume de Rouville Date: Fri, 13 Aug 2021 04:32:43 +0200 Subject: [PATCH] Add doc-test to CI - Add Cue dependency to integration CI test Signed-off-by: Guillaume de Rouville --- .github/workflows/ci.yml | 12 ++++++++++-- Makefile | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5305c6b1..2e249dc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [main] + branches: [ main ] pull_request: - branches: [main] + branches: [ main ] jobs: lint: @@ -76,6 +76,14 @@ jobs: with: go-version: 1.16 + - name: Install Dependencies + run: | + # Cue + export CUE_VERSION="$(grep cue ./go.mod | cut -d' ' -f2)" + export CUE_TARBALL="cue_${CUE_VERSION}_linux_amd64.tar.gz" + echo "Installing cue version $CUE_VERSION" + curl -L https://github.com/cuelang/cue/releases/download/${CUE_VERSION}/${CUE_TARBALL} | sudo tar zxf - -C /usr/local/bin + - name: Install Dependencies run: | # SOPS diff --git a/Makefile b/Makefile index f585dc95..5b6de955 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ shellcheck: lint: shellcheck cuelint golint docslint .PHONY: integration -integration: core-integration universe-test +integration: core-integration universe-test doc-test .PHONY: core-integration core-integration: dagger-debug