[CIEDEV-3991][Bundle Authoring]: Create static container image with terraform binaries #113
Workflow file for this run
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
name: Build and run tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Test Code | |
run: | | |
export CI=true | |
go test './...' | |
echo "Tests passed successfully." | |
- name: Build | |
run: | | |
go build | |
- name: Test CLI Code | |
run: | | |
export CI=true | |
cd tools/cli | |
go test './...' | |
echo "CLI Tests passed successfully." | |
- name: Build CLI | |
run: | | |
cd tools/cli | |
go build |