Skip to content

Commit

Permalink
Merge pull request #17025 from developer-guy/actions-runner-controller
Browse files Browse the repository at this point in the history
add tests, missing binaries and correct paths
  • Loading branch information
mamccorm authored Apr 17, 2024
2 parents fc6aba9 + f254e87 commit 5c6b7e2
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions actions-runner-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ pipeline:
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:
Expand Down Expand Up @@ -59,10 +65,27 @@ 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
github:
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

0 comments on commit 5c6b7e2

Please sign in to comment.