mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-11 12:06:57 +00:00
This enhances the E2E test suite introduced in #658 to also include the following steps: - Install GitHub Actions workflow - Trigger a workflow run via a git commit - Verify the workflow run result In the workflow, we use `kubectl create cm --from-literal` to create a configmap that contains an unique test ID. In the last step we obtain the configmap from within the E2E test and check the test ID to match the expected one. To install a GitHub Actions workflow, we clone a GitHub repository denoted by the TEST_REPO envvar, progmatically generate a few files with some Go code, run `git-add`, `git-commit`, and then `git-push` to actually push the files to the repository. A single commit containing an updated workflow definition and an updated file seems to run a workflow derived to the definition introduced in the commit, which was a bit surpirising and useful behaviour. At this point, the E2E test fully covers all the steps for a GitHub token based installation. We need to add scenarios for more deployment options, like GitHub App, RunnerDeployment, HRA, and so on. But each of them would worth another pull request.
41 lines
1.7 KiB
Modula-2
41 lines
1.7 KiB
Modula-2
module github.com/actions-runner-controller/actions-runner-controller
|
|
|
|
go 1.15
|
|
|
|
require (
|
|
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 // indirect
|
|
github.com/bradleyfalzon/ghinstallation v1.1.1
|
|
github.com/coreos/etcd v3.3.15+incompatible // indirect
|
|
github.com/coreos/go-etcd v2.0.0+incompatible // indirect
|
|
github.com/cpuguy83/go-md2man v1.0.10 // indirect
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0 // indirect
|
|
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96 // indirect
|
|
github.com/go-logr/logr v0.4.0
|
|
github.com/go-openapi/validate v0.19.2 // indirect
|
|
github.com/google/go-cmp v0.5.5
|
|
github.com/google/go-github/v33 v33.0.1-0.20210204004227-319dcffb518a
|
|
github.com/gophercloud/gophercloud v0.1.0 // indirect
|
|
github.com/gorilla/mux v1.8.0
|
|
github.com/kelseyhightower/envconfig v1.4.0
|
|
github.com/onsi/ginkgo v1.16.4
|
|
github.com/onsi/gomega v1.13.0
|
|
github.com/prometheus/client_golang v1.11.0
|
|
github.com/teambition/rrule-go v1.6.2
|
|
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 // indirect
|
|
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 // indirect
|
|
go.uber.org/zap v1.17.0
|
|
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
|
|
gomodules.xyz/jsonpatch/v2 v2.2.0
|
|
gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e // indirect
|
|
gotest.tools v2.2.0+incompatible // indirect
|
|
k8s.io/api v0.21.1
|
|
k8s.io/apimachinery v0.21.1
|
|
k8s.io/client-go v0.21.1
|
|
k8s.io/klog v0.4.0 // indirect
|
|
sigs.k8s.io/controller-runtime v0.9.0
|
|
sigs.k8s.io/structured-merge-diff v0.0.0-20190817042607-6149e4549fca // indirect
|
|
sigs.k8s.io/testing_frameworks v0.1.2 // indirect
|
|
sigs.k8s.io/yaml v1.2.0 // indirect
|
|
)
|