diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13b035613..416e0954f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,18 +25,9 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Cache Go modules - uses: actions/cache@v1 - env: - cache-name: go-mod + - uses: actions/setup-go@v2 with: - path: | - ~/go/pkg/mod - /home/runner/work/capsule/capsule - key: ${{ runner.os }}-build-${{ env.cache-name }} - restore-keys: | - ${{ runner.os }}-build- - ${{ runner.os }}- + go-version: '^1.16' - run: make installer - name: Checking if YAML installer file is not aligned run: if [[ $(git diff | wc -l) -gt 0 ]]; then echo ">>> Untracked generated files have not been committed" && git --no-pager diff && exit 1; fi diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index fb32c8997..0183aad1f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -17,19 +17,9 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Cache Go modules and Docker images - uses: actions/cache@v1 - env: - cache-name: gomod-docker + - uses: actions/setup-go@v2 with: - path: | - ~/go/pkg/mod - /var/lib/docker - /home/runner/work/capsule/capsule - key: ${{ matrix.k8s-version }}-build-${{ env.cache-name }} - restore-keys: | - ${{ matrix.k8s-version }}-build- - ${{ matrix.k8s-version }}- + go-version: '^1.16' - run: make manifests - name: Checking if manifests are disaligned run: test -z "$(git diff 2> /dev/null)" @@ -39,7 +29,7 @@ jobs: run: go get github.com/onsi/ginkgo/ginkgo - uses: actions/setup-go@v2 with: - go-version: '^1.6' + go-version: '^1.16' - uses: engineerd/setup-kind@v0.5.0 with: skipClusterCreation: true