You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
name: Test
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.16.x]
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Test
|
|
run: |
|
|
go version
|
|
go test ./...
|
|
|
|
# TODO: re-enable once we get Go master/tip working again
|
|
#test-gotip:
|
|
# runs-on: ubuntu-latest
|
|
# continue-on-error: true # master breaks sometimes
|
|
# steps:
|
|
# - name: Install Go
|
|
# run: |
|
|
# git clone --depth=1 https://go.googlesource.com/go $HOME/gotip
|
|
# cd $HOME/gotip/src
|
|
# ./make.bash
|
|
# echo "::set-env name=GOROOT::$HOME/gotip"
|
|
# echo "::add-path::$HOME/gotip/bin"
|
|
# - name: Checkout code
|
|
# uses: actions/checkout@v2
|
|
# - name: Test
|
|
# run: |
|
|
# go version
|
|
# go test ./...
|
|
|
|
code-checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Test that only LF line endings are used
|
|
run: ./scripts/crlf-test.sh
|