-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #562 from pjbgf/test-alpine
- Loading branch information
Showing
9 changed files
with
337 additions
and
158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ jobs: | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run tests | ||
run: make test | ||
- name: Setup Kubernetes | ||
uses: engineerd/[email protected] | ||
with: | ||
|
@@ -36,11 +38,6 @@ jobs: | |
uses: fluxcd/pkg/actions/kustomize@main | ||
- name: Setup Helm | ||
uses: fluxcd/pkg/actions/helm@main | ||
- name: Run tests | ||
uses: ./.github/actions/run-tests | ||
env: | ||
GOROOT: | ||
GOPATH: /github/home/go | ||
- name: Verify | ||
run: make verify | ||
- name: Run E2E tests | ||
|
@@ -59,6 +56,12 @@ jobs: | |
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17.x | ||
- name: Run tests | ||
run: | | ||
mkdir tmp-download; cd tmp-download; go mod init go-download; | ||
GOBIN="${GITHUB_WORKSPACE}/build/gobin" go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | ||
cd ..; rm -rf tmp-download | ||
make test | ||
- name: Prepare | ||
id: prep | ||
run: | | ||
|
@@ -80,3 +83,24 @@ jobs: | |
run: | | ||
kind delete cluster --name ${{ steps.prep.outputs.CLUSTER }} | ||
rm /tmp/${{ steps.prep.outputs.CLUSTER }} | ||
# Runs 'make test' on macos-10.15 to assure development environment for | ||
# contributors using MacOS. | ||
darwin-amd64: | ||
runs-on: macos-10.15 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17.x | ||
- name: Restore Go cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: /home/runner/work/_temp/_github_home/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Run tests | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.