github.com/hashgraph/hedera-sdk-go/v2@v2.48.0/.github/workflows/previewnet.yml (about) 1 name: Previewnet 2 env: 3 OPERATOR_KEY: ${{ secrets.PREVIEWNET_OPERATOR_KEY }} 4 OPERATOR_ID: ${{ secrets.PREVIEWNET_OPERATOR_ID }} 5 HEDERA_NETWORK: "previewnet" 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 21 build: 22 name: Build 23 runs-on: client-sdk-linux-medium 24 steps: 25 - name: Harden Runner 26 uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 27 with: 28 egress-policy: audit 29 30 - name: Setup GCC 31 run: | 32 sudo apt-get update 33 sudo apt-get install -y --no-install-recommends gcc libc6-dev libc-dev 34 35 - name: Set up Go 1.20 36 uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 37 with: 38 go-version: "1.20" 39 id: go 40 41 - name: Check out code into the Go module directory 42 uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 43 44 - name: Vet Examples 45 run: go vet ./examples/... 46 47 - name: Vet 48 run: go vet . 49 50 - name: Lint 51 uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 52 with: 53 version: v1.50 54 55 - name: Build 56 run: go build -v . 57 58 - name: Test 59 run: go test -v -timeout 9999s