🇧🇷 CPF validation in Go

Add CI with tests

authored by

Eduardo Cuducos and committed by
GitHub
59e7811d aa6db60b

+30
+30
.github/workflows/tests.yml
··· 1 + name: Tests 2 + 3 + on: [pull_request, push] 4 + 5 + jobs: 6 + 7 + build: 8 + name: Build 9 + runs-on: ubuntu-latest 10 + steps: 11 + 12 + - name: Set up Go 1.13 13 + uses: actions/setup-go@v1 14 + with: 15 + go-version: 1.13 16 + id: go 17 + 18 + - name: Check out code into the Go module directory 19 + uses: actions/checkout@v2 20 + 21 + - name: Get dependencies 22 + run: | 23 + go get -v -t -d ./... 24 + if [ -f Gopkg.toml ]; then 25 + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh 26 + dep ensure 27 + fi 28 + 29 + - name: Build 30 + run: go test