mirror of https://github.com/statping/statping
github action building
parent
8cf0075b46
commit
8f05bb5acd
|
@ -86,6 +86,7 @@ jobs:
|
|||
|
||||
- name: Setting ENV's
|
||||
run: |
|
||||
echo "::set-env name=GOPATH::${{ github.workspace }}/go"
|
||||
echo "::add-path::$(go env GOPATH)/bin"
|
||||
echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
||||
echo ::set-env name=VERSION::$(cat version.txt)
|
||||
|
@ -95,12 +96,13 @@ jobs:
|
|||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: static-rice-box
|
||||
path: ./source
|
||||
path: ./go/src/github.com/${{ github.repository }}/source
|
||||
|
||||
- name: Install Statping
|
||||
env:
|
||||
VERSION: ${{ env.VERSION }}
|
||||
run: |
|
||||
cd ./go/src/github.com/${{ github.repository }}
|
||||
make build
|
||||
chmod +x statping
|
||||
mv statping $(go env GOPATH)/bin/
|
||||
|
@ -148,12 +150,17 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
path: ./go/src/github.com/${{ github.repository }}
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.14.2'
|
||||
|
||||
- name: Setting ENV's
|
||||
run: |
|
||||
echo "::set-env name=GOPATH::${{ github.workspace }}/go"
|
||||
echo "::add-path::$(go env GOPATH)/bin"
|
||||
echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
||||
echo ::set-env name=VERSION::$(cat version.txt)
|
||||
|
@ -163,12 +170,13 @@ jobs:
|
|||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: static-rice-box
|
||||
path: ./source
|
||||
path: ./go/src/github.com/${{ github.repository }}/source
|
||||
|
||||
- name: Install Statping
|
||||
env:
|
||||
VERSION: ${{ env.VERSION }}
|
||||
run: |
|
||||
cd ./go/src/github.com/${{ github.repository }}
|
||||
make build
|
||||
chmod +x statping
|
||||
mv statping $(go env GOPATH)/bin/
|
||||
|
@ -197,7 +205,7 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
path: go/src/github.com/${{ github.repository }}
|
||||
path: ./go/src/github.com/${{ github.repository }}
|
||||
|
||||
- name: Setting ENV's
|
||||
run: |
|
||||
|
@ -208,7 +216,9 @@ jobs:
|
|||
shell: bash
|
||||
|
||||
- name: Download Go mods
|
||||
run: make test-deps
|
||||
run: |
|
||||
cd ./go/src/github.com/${{ github.repository }}
|
||||
make test-deps
|
||||
|
||||
- name: Download Compiled Frontend (rice-box.go)
|
||||
uses: actions/download-artifact@v1
|
||||
|
|
Loading…
Reference in New Issue