diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..e5ab7f3 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,36 @@ +name: Build and Test +on: + pull_request: +jobs: + go-build: + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.16', '1.15' ] + name: Go ${{ matrix.go }} build + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + - name: Build and test + run: | + go build ./... + go test -race -coverprofile=profile.cov ./... + - name: Send coverage + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov + flag-name: Go-${{ matrix.go }} + parallel: true + coverage: + needs: go-build + name: Test Coverage + runs-on: ubuntu-latest + steps: + - uses: shogo82148/actions-goveralls@v1 + with: + parallel-finished: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3c286cd..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -dist: bionic - -env: - global: - - GO111MODULE=on - -language: go - -install: - - "go get golang.org/x/lint/golint" - - "make deps" - -jobs: - include: - - go: "1.14.x" - - go: "1.15.x" - - language: elm - elm: "latest-0.19.1" - elm_format: "latest-0.19.1" - elm_test: "latest-0.19.1" - node_js: "10.16.0" - install: - - "cd ui" - - "npm ci" - script: - - "elm-format --validate ." - - "npm run build" - -stages: - - test