diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4423acb..0dd0851 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: Go on: [push] jobs: - build: + test: runs-on: ubuntu-latest strategy: matrix: @@ -16,8 +16,6 @@ jobs: version: ${{ matrix.go }} - name: Run go mod download run: go mod download - - name: Run golangci-lint - run: make lint - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: @@ -29,3 +27,20 @@ jobs: sudo apt-get update -y sudo apt-get install ruby -y make test smoke + lint: + runs-on: ubuntu-latest + strategy: + matrix: + go: + - 1.13.4 + name: Go ${{ matrix.go }} build + steps: + - uses: actions/checkout@master + - name: Setup Go + uses: actions/setup-go@v1 + with: + version: ${{ matrix.go }} + - name: Run go mod download + run: go mod download + - name: Run golangci-lint + run: make lint diff --git a/examples/advanced/import/mycli b/examples/advanced/import/mycli new file mode 100644 index 0000000..271dc17 --- /dev/null +++ b/examples/advanced/import/mycli @@ -0,0 +1,3 @@ +#!/usr/bin/env variant + +import = "." diff --git a/examples/module/Dockerfile b/examples/module/Dockerfile index 7e7ae05..a272deb 100644 --- a/examples/module/Dockerfile +++ b/examples/module/Dockerfile @@ -1,6 +1,6 @@ FROM alpine:3.10 -ARG HELM_VERSION=3.0.0 +ARG HELM_VERSION=3.2.0 ARG HELM_FILENAME="helm-${HELM_VERSION}-linux-amd64.tar.gz" ADD http://storage.googleapis.com/kubernetes-helm/${HELM_FILE_NAME} /tmp diff --git a/examples/module/default.variantmod b/examples/module/default.variantmod index f5f4c66..9c225a2 100644 --- a/examples/module/default.variantmod +++ b/examples/module/default.variantmod @@ -1,7 +1,7 @@ module "default" { dependency "github_release" "helm" { source = "helm/helm" - version = "> 1.0.0, < 3.0.1" + version = ">= 3.0.0, < 3.2.1" } file "Dockerfile" { diff --git a/examples/module/module_test.variant b/examples/module/module_test.variant index 633b154..db600c4 100644 --- a/examples/module/module_test.variant +++ b/examples/module/module_test.variant @@ -2,7 +2,7 @@ test "test" { case "ok" { out = trimspace(<