Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed May 12, 2020
1 parent f482a07 commit c035902
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
54 changes: 26 additions & 28 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: build

on: [push, pull_request]

Expand Down Expand Up @@ -34,15 +34,13 @@ jobs:
--health-timeout 5s
--health-retries 5
# env:
# "redis-cli ping"
# "redis-cli ping"
ports:
# Maps port 6379 on service container to the host
- 6379:6379

steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/checkout@v2

- uses: actions/setup-go@v1
with:
Expand Down Expand Up @@ -73,27 +71,27 @@ jobs:
run: |
GO111MODULE=off go get golang.org/x/tools/cmd/cover
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=coverage.out -service=github
# after success
# - name: Coverage
# if: startsWith(matrix.os, 'ubuntu')
# run: |
# go get golang.org/x/tools/cmd/cover
# go get github.com/mattn/goveralls
# /home/runner/go/bin/goveralls -coverprofile=coverage.out -service=github-action -repotoken ${{ secrets.COVERALLS_TOKEN }}
$(go env GOPATH)/bin/goveralls -coverprofile=coverage.out -service="GitHub Action" -jobid="${{ github.run_id }}" -jobnumber="${{ github.run_number }}" -reponame="${{ github.repository }}"
# release:
# name: Release to Github
# if: startsWith(github.ref, 'refs/tags/') && github.repository == 'axetroy/go-server'
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# with:
# files: |
# bin/wsm_darwin_amd64.tar.gz
# bin/wsm_linux_amd64.tar.gz
# bin/wsm_windows_amd64.tar.gz
# draft: false
- uses: softprops/action-gh-release@v1
name: Release to Github
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'axetroy/go-server'
env:
# require Github Personal Access Token
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
files: |
./bin/vscode-deno.vsix
./bin/user_server_darwin_amd64.tar.gz
./bin/user_server_linux_amd64.tar.gz
./bin/user_server_windows_amd64.tar.gz
./bin/admin_server_darwin_amd64.tar.gz
./bin/admin_server_linux_amd64.tar.gz
./bin/admin_server_windows_amd64.tar.gz
./bin/resource_server_darwin_amd64.tar.gz
./bin/resource_server_linux_amd64.tar.gz
./bin/resource_server_windows_amd64.tar.gz
./bin/message_queue_server_darwin_amd64.tar.gz
./bin/message_queue_server_linux_amd64.tar.gz
./bin/message_queue_server_windows_amd64.tar.gz
draft: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![ci](https://github.com/axetroy/go-server/workflows/ci/badge.svg)
![build](https://github.com/axetroy/go-server/workflows/build/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/axetroy/go-server/badge.svg?branch=master)](https://coveralls.io/github/axetroy/go-server?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/axetroy/go-server)](https://goreportcard.com/report/github.com/axetroy/go-server)
![License](https://img.shields.io/github/license/axetroy/go-server.svg)
Expand Down

0 comments on commit c035902

Please sign in to comment.