Skip to content

Commit

Permalink
Merge pull request #32 from System-Glitch/develop
Browse files Browse the repository at this point in the history
v2.5.0
  • Loading branch information
System-Glitch authored Feb 5, 2020
2 parents 5d44652 + 86c9668 commit 137cacd
Show file tree
Hide file tree
Showing 113 changed files with 2,704 additions and 488 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Test
on: [push, pull_request]
jobs:

test:
name: Test
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
go get golang.org/x/lint/golint
go get github.com/rakyll/gotest
- name: Verify MySQL connection
run: |
while ! mysqladmin ping --silent; do
sleep 1
done
- name: Setup MySQL database
run: |
sudo mysql -proot -e 'CREATE DATABASE goyave CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
sudo mysql -proot -e 'CREATE USER "goyave"@"%" IDENTIFIED BY "secret"'
sudo mysql -proot -e 'GRANT ALL PRIVILEGES ON goyave.* TO "goyave"@"%"'
- name: Test
run: |
gotest -race -count=20 .
gotest -v -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
golint -set_exit_status $(go list ./...)
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.txt
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 137cacd

Please sign in to comment.