Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 5s
CI Workflow / CI run tests (pull_request) Failing after 2m27s
CI Workflow / CI run build and linting (pull_request) Failing after 2m12s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Failing after 2m55s
60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
name: Build
|
|
description: "Build pipeline"
|
|
inputs:
|
|
go-version:
|
|
description: "Go version to install"
|
|
default: '1.25'
|
|
required: true
|
|
java-distribution:
|
|
description: "JAVA distribution to use (default: temurin)"
|
|
default: 'temurin'
|
|
java-version:
|
|
description: "JAVA version to use (default: 21)"
|
|
default: '21'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install needed tools
|
|
shell: bash
|
|
run: |
|
|
set -e
|
|
apt-get -y -qq update
|
|
apt-get -y -qq install jq python3 python3-pip python-is-python3 s3cmd git make wget
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install Go ${{ inputs.go-version }}
|
|
uses: https://code.forgejo.org/actions/setup-go@v6
|
|
with:
|
|
# go-version: ${{ inputs.go-version }}
|
|
check-latest: true
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Install go tools
|
|
shell: bash
|
|
run: |
|
|
set -e
|
|
go install golang.org/x/tools/cmd/goimports@latest
|
|
# go install github.com/hashicorp/terraform-plugin-codegen-framework/cmd/tfplugingen-framework@latest
|
|
# go install github.com/hashicorp/terraform-plugin-codegen-openapi/cmd/tfplugingen-openapi@latest
|
|
# go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@v0.24.0
|
|
|
|
- name: Setup JAVA ${{ inputs.java-distribution }} ${{ inputs.go-version }}
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: ${{ inputs.java-distribution }} # See 'Supported distributions' for available options
|
|
java-version: ${{ inputs.java-version }}
|
|
|
|
- name: Run build pkg directory
|
|
shell: bash
|
|
run: |
|
|
set -e
|
|
go run generator/main.go build
|
|
|
|
- name: Run make to build app
|
|
shell: bash
|
|
run: |
|
|
set -e
|
|
make build
|