mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
34 lines
No EOL
1 KiB
YAML
34 lines
No EOL
1 KiB
YAML
name: Unit Tests
|
|
on: [ push, pull_request ]
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install gotip
|
|
run: |
|
|
git clone --depth=1 https://go.googlesource.com/go $HOME/gotip
|
|
cd $HOME/gotip/src
|
|
./make.bash
|
|
echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
|
|
echo "$HOME/gotip/bin:$PATH" >> $GITHUB_PATH
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
if [ -f Gopkg.toml ]; then
|
|
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
|
dep ensure
|
|
fi
|
|
- name: Test
|
|
run: go test -v ./...
|
|
- name: Upload coverage to Codecov
|
|
- name: Upload coverage report
|
|
uses: codecov/codecov-action@v1.0.2
|
|
with:
|
|
token: 7106da3d-7479-471f-ae37-e3680b62063d
|
|
file: ./coverage.txt
|
|
flags: unittests
|
|
name: codecov-umbrella |