From f254e87e245bf77ef79067f3c007c9d4bb511c08 Mon Sep 17 00:00:00 2001 From: Batuhan Apaydin Date: Wed, 17 Apr 2024 10:27:20 +0300 Subject: [PATCH] add tests, missing binaries and correct paths Signed-off-by: Batuhan Apaydin --- actions-runner-controller.yaml | 38 +++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/actions-runner-controller.yaml b/actions-runner-controller.yaml index 8325a0e178c..2324f8b5118 100644 --- a/actions-runner-controller.yaml +++ b/actions-runner-controller.yaml @@ -1,7 +1,7 @@ package: name: actions-runner-controller - version: 0.9.0 - epoch: 1 + version: 0.9.1 + epoch: 0 description: Kubernetes controller for GitHub Actions self-hosted runners copyright: - license: Apache-2.0 @@ -18,24 +18,25 @@ pipeline: with: repository: https://github.com/actions/actions-runner-controller tag: gha-runner-scale-set-${{package.version}} - expected-commit: 4357525445b0b77388af4e1f171b5b7bd9b116a4 - - # Ref: https://github.com/actions/actions-runner-controller/blob/gha-runner-scale-set-0.5.0/Dockerfile#L35 - - uses: go/bump - with: - deps: github.com/cloudflare/circl@v1.3.7 + expected-commit: 9e191cdd21621f4e43023e0bdbbd2ff9b139c8a6 - uses: go/build with: packages: . output: manager - ldflags: -s -w + ldflags: -s -w -X 'github.com/actions/actions-runner-controller/build.Version=${{package.version}}' -X 'github.com/actions/actions-runner-controller/build.CommitSHA=$(git rev-parse HEAD)' - uses: go/build with: packages: ./cmd/githubrunnerscalesetlistener output: github-runnerscaleset-listener - ldflags: -s -w -X 'github.com/actions/actions-runner-controller/build.Version=${{package.version}}' + ldflags: -s -w -X 'github.com/actions/actions-runner-controller/build.Version=${{package.version}}' -X 'github.com/actions/actions-runner-controller/build.CommitSHA=$(git rev-parse HEAD)' + + - uses: go/build + with: + packages: ./cmd/ghalistener + output: ghalistener + ldflags: -s -w -X 'github.com/actions/actions-runner-controller/build.Version=${{package.version}}' -X 'github.com/actions/actions-runner-controller/build.CommitSHA=$(git rev-parse HEAD)' - uses: go/build with: @@ -64,6 +65,7 @@ subpackages: - runs: | mkdir -p "${{targets.subpkgdir}}" ln -sf /usr/bin/manager ${{targets.subpkgdir}}/manager + ln -sf /usr/bin/ghalistener ${{targets.subpkgdir}}/ghalistener update: enabled: true @@ -71,3 +73,19 @@ update: identifier: actions/actions-runner-controller strip-prefix: gha-runner-scale-set- tag-filter: gha-runner-scale-set- + +test: + environment: + contents: + packages: + - ${{package.name}}-compat + pipeline: + - runs: | + set +e + /manager -h + /ghalistener -h + github-runnerscaleset-listener -h + ghalistener -h + github-webhook-server -h + actions-metrics-server -h + sleep 1