diff options
author | Teddy Wing | 2020-12-20 22:59:04 +0100 |
---|---|---|
committer | Teddy Wing | 2020-12-20 23:03:11 +0100 |
commit | b89d9ed327fe7689edd72bfec815d754a724b850 (patch) | |
tree | 4eba252a823b3877ea3b314a631c289bcc8bda55 | |
parent | dd8faf757c25287342d8aa86ad9b1ff95ea6ca39 (diff) | |
download | browserenv-b89d9ed327fe7689edd72bfec815d754a724b850.tar.bz2 |
Set up CI to run tests.
-rw-r--r-- | .github/workflows/test.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..cb9f3cc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Test + +on: + push: + branches: + - master + + pull_request: + branches: + - master + +jobs: + test: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + go: ['1.15', '1.14'] + + name: Test ${{ matrix.os }}-go${{ matrix.go }} + + steps: + - uses: actions/checkout@v2 + - name: Setup Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + + - run: go test -v ./... |