test: try gotest action
[skip ci]
This commit is contained in:
parent
8e90aca4dd
commit
344639a908
1 changed files with 20 additions and 11 deletions
31
.github/actions/acc_test/action.yaml
vendored
31
.github/actions/acc_test/action.yaml
vendored
|
|
@ -61,25 +61,33 @@ inputs:
|
||||||
default: ''
|
default: ''
|
||||||
|
|
||||||
|
|
||||||
outputs:
|
#outputs:
|
||||||
random-number:
|
# random-number:
|
||||||
description: "Random number"
|
# description: "Random number"
|
||||||
value: ${{ steps.random-number-generator.outputs.random-number }}
|
# value: ${{ steps.random-number-generator.outputs.random-number }}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Random Number Generator
|
# - name: Random Number Generator
|
||||||
id: random-number-generator
|
# id: random-number-generator
|
||||||
run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
|
# run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
|
||||||
- name: Install needed tools
|
- name: Install needed tools
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
echo "::group::apt install"
|
||||||
set -e
|
set -e
|
||||||
apt-get -y -qq update
|
apt-get -y -qq update >apt_update.log 2>apt_update_err.log
|
||||||
apt-get -y -qq install jq python3 python3-pip python-is-python3 s3cmd git make wget
|
if [ $? -ne 0 ]; then
|
||||||
|
cat apt_update.log apt_update_err.log
|
||||||
|
fi
|
||||||
|
apt-get -y -qq install jq python3 python3-pip python-is-python3 s3cmd git make wget >apt_get.log 2>apt_get_err.log
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
cat apt_get.log apt_get_err.log
|
||||||
|
fi
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Setup JAVA
|
- name: Setup JAVA
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@v5
|
||||||
|
|
@ -112,6 +120,7 @@ runs:
|
||||||
if: steps.cache-gopkg.outputs.cache-hit != 'true'
|
if: steps.cache-gopkg.outputs.cache-hit != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
echo "::group::go install"
|
||||||
set -e
|
set -e
|
||||||
go mod download
|
go mod download
|
||||||
go install golang.org/x/tools/cmd/goimports@latest
|
go install golang.org/x/tools/cmd/goimports@latest
|
||||||
|
|
@ -119,7 +128,7 @@ runs:
|
||||||
go install github.com/hashicorp/terraform-plugin-codegen-openapi/cmd/tfplugingen-openapi@latest
|
go install github.com/hashicorp/terraform-plugin-codegen-openapi/cmd/tfplugingen-openapi@latest
|
||||||
go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@latest
|
go install github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs@latest
|
||||||
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
|
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
|
||||||
|
echo "::endgroup::"
|
||||||
- name: Run go mod tidy
|
- name: Run go mod tidy
|
||||||
shell: bash
|
shell: bash
|
||||||
run: go mod tidy
|
run: go mod tidy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue