github.com/hashgraph/hedera-sdk-go/v2@v2.48.0/.github/workflows/testnet.yml (about) 1 name: Testnet 2 env: 3 OPERATOR_KEY: ${{ secrets.TESTNET_OPERATOR_KEY }} 4 OPERATOR_ID: ${{ secrets.TESTNET_OPERATOR_ID }} 5 HEDERA_NETWORK: "testnet" 6 7 defaults: 8 run: 9 shell: bash 10 11 permissions: 12 contents: read 13 14 on: 15 schedule: 16 - cron: '0 0 * * *' 17 workflow_dispatch: 18 19 jobs: 20 build: 21 name: Build 22 runs-on: client-sdk-linux-medium 23 steps: 24 - name: Harden Runner 25 uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 26 with: 27 egress-policy: audit 28 29 - name: Setup GCC 30 run: | 31 sudo apt-get update 32 sudo apt-get install -y --no-install-recommends gcc libc6-dev libc-dev 33 34 - name: Set up Go 1.20 35 uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 36 with: 37 go-version: "1.20" 38 id: go 39 40 - name: Check out code into the Go module directory 41 uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 42 43 - name: Vet Examples 44 run: go vet ./examples/... 45 46 - name: Vet 47 run: go vet . 48 49 - name: Build 50 run: go build -v . 51 52 test: 53 name: Test 54 runs-on: client-sdk-linux-medium 55 steps: 56 - name: Harden Runner 57 uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 58 with: 59 egress-policy: audit 60 61 - name: Setup GCC 62 run: | 63 sudo apt-get update 64 sudo apt-get install -y --no-install-recommends gcc libc6-dev libc-dev 65 66 - name: Set up Go 1.19 67 uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 68 with: 69 go-version: 1.19 70 id: go 71 72 - name: Check out code into the Go module directory 73 uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 74 75 - run: go test -v -timeout 9999s 76 77 golangci: 78 name: lint 79 runs-on: client-sdk-linux-medium 80 steps: 81 - name: Harden Runner 82 uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 83 with: 84 egress-policy: audit 85 - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 86 - name: golangci-lint 87 uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 88 with: 89 version: v1.50