github.com/mweagle/Sparta@v1.15.0/.github/workflows/go.yml (about) 1 name: Sparta_Build 2 on: [push] 3 jobs: 4 build: 5 name: CI 6 strategy: 7 matrix: 8 go-version: [1.13.7] 9 platform: [ubuntu-latest] 10 runs-on: ${{ matrix.platform }} 11 env: 12 GO111MODULE: on 13 S3_BUCKET: weagle 14 # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets 15 AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} 16 AWS_REGION: ${{ secrets.AWS_REGION }} 17 AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} 18 steps: 19 - name: Set up Go 1.13 20 uses: actions/setup-go@v1 21 with: 22 go-version: ${{ matrix.go-version }} 23 id: go 24 25 - name: Check out code into the Go module directory 26 uses: actions/checkout@v1 27 28 - name: Get prerequities 29 # Workaround for https://github.com/golang/go/issues/30515 30 run: | 31 ./prerequisites.sh 32 33 # - name: Run single test 34 # run: | 35 # go test -v -run TestDelete 36 37 - name: CI build 38 run: | 39 # Workaround 40 # https://github.com/actions/setup-go/issues/27 41 export PATH=${PATH}:`go env GOPATH`/bin 42 mage -v CIBuild