-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from System-Glitch/develop
v2.5.0
- Loading branch information
Showing
113 changed files
with
2,704 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.