Avoid bug with go 1.20 missing EOF new line #97
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: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
run: | | |
go test -race -coverprofile=coverage.txt -covermode=atomic -count=100 | |
bash <(curl -s https://codecov.io/bash) | |
- name: Usage Test | |
run: | | |
cd examples/tls_esme_usage/ && go run tls_esme_usage.go | |
cd ../simple_esme_usage && go run simple_esme_usage.go | |
cd ../custom_functions && go run deliver_sm_handler.go |