commit - 8d58d57433630b6b5abc4a89c59332222e24236b
commit + acb4fcfde7bb329abb96a1680d317ceaa17c4161
blob - f17745a62e6dbc50f529faeb0787753c19e3d290 (mode 644)
blob + /dev/null
--- .travis.yml
+++ /dev/null
-sudo: false
-
-language: go
-
-os:
- - linux
- - osx
-
-go:
- - tip
- - 1.12.x
- - 1.13
-
-script:
- - GO111MODULE=on go get -t -v ./...
- - diff -u <(echo -n) <(gofmt -d -s .)
- - GO111MODULE=on go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
-
-script:
- - test -z "$(gofmt -s -l . | tee /dev/stderr)"
- - go test -v ./...
-
-after_success:
- - bash <(curl -s https://codecov.io/bash)
-
-notifications:
- email:
- on_success: change
- on_failure: always
blob - /dev/null
blob + 8b702d19dd0a2e0649d194befbedf5102c585329 (mode 644)
--- /dev/null
+++ .github/workflows/testing.yml
+name: Testing
+
+on:
+ push:
+ pull_request:
+ workflow_dispatch:
+
+jobs:
+ linux:
+ # We want to run on external PRs, but not on our own internal
+ # PRs as they'll be run by the push to the branch.
+ #
+ # The main trick is described here:
+ # https://github.com/Dart-Code/Dart-Code/pull/2375
+ if: github.event_name == 'push' ||
+ github.event.pull_request.head.repo.full_name != github.repository
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+
+ steps:
+ - name: Clone repository with source code
+ uses: actions/checkout@v2
+
+ - name: Check Golang code style
+ run: |
+ diff -u <(echo -n) <(gofmt -d -s .)
+ test -z "$(gofmt -s -l . | tee /dev/stderr)"
+
+ - name: Run tests
+ run: |
+ GO111MODULE=on go get -t -v ./...
+ go test -v ./...