fix(CLOUDDEV-1134): fix add sg without port #772
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 | |
on: | |
pull_request: | |
branches: [ master, main, release-cloud, instanceV2] | |
jobs: | |
build: | |
env: | |
EC_USERNAME: ${{ secrets.EC_USERNAME }} | |
EC_PASSWORD: ${{ secrets.EC_PASSWORD }} | |
EC_PERMANENT_TOKEN: ${{ secrets.EC_PERMANENT_TOKEN }} | |
EC_API: ${{ secrets.EC_API }} | |
EC_CDN_URL: ${{ secrets.EC_CDN_URL }} | |
EC_DNS_API: ${{ secrets.EC_DNS_API }} | |
EC_PLATFORM: ${{ secrets.EC_PLATFORM }} | |
EC_STORAGE_API: ${{ secrets.EC_STORAGE_API }} | |
TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }} | |
TEST_REGION_ID: ${{ secrets.TEST_REGION_ID }} | |
TF_ACC: ${{ secrets.TF_ACC }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22.0 | |
- name: Linters | |
run: make linters | |
- name: Build | |
run: go build -v ./... | |
- name: Tests data_source | |
run: go test -v ./edgecenter/test -tags cloud_data_source -short -timeout=20m | |
- name: Tests resource | |
run: go test -v ./edgecenter/test -tags cloud_resource -short -timeout=20m |