Bump actions/setup-go from 4.0.1 to 4.1.0 #56
Workflow file for this run
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: Go | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.14 | |
uses: actions/setup-go@v4.1.0 | |
with: | |
go-version: 1.14 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v1 | |
- name: Swagger - Installation | |
run: go get -u github.com/swaggo/swag/cmd/swag | |
- name: Swagger - Init | |
run: ~/go/bin/swag init | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
if [ -f Gopkg.toml ]; then | |
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | |
dep ensure | |
fi | |
- name: Config | |
run: | | |
cp config.json.dist config.json | |
sed -i 's/pk_xxx/${{ secrets.STRIPE_PK }}/g; s/sk_xxx/${{ secrets.STRIPE_SK }}/g' config.json | |
- name: Tests - Unit | |
run: go test ./... -failfast -tags=unit | |
- name: Tests - Stripe | |
run: go test ./... -failfast -tags=stripe -config=/home/runner/work/upaygo/upaygo/config.json | |
- name: Build | |
run: go build -v . |