mirror of https://github.com/statping/statping
workflow
parent
ed6deb1436
commit
244838e946
|
@ -126,6 +126,7 @@ jobs:
|
||||||
mv statping-linux-${{ matrix.arch }} statping
|
mv statping-linux-${{ matrix.arch }} statping
|
||||||
chmod +x statping
|
chmod +x statping
|
||||||
tar -czvf statping-linux-${{ matrix.arch }}.tar.gz statping
|
tar -czvf statping-linux-${{ matrix.arch }}.tar.gz statping
|
||||||
|
rm -rf statping
|
||||||
echo ::set-env name=compressed::statping-linux-${{ matrix.arch }}.tar.gz
|
echo ::set-env name=compressed::statping-linux-${{ matrix.arch }}.tar.gz
|
||||||
|
|
||||||
- name: Compress Windows Builds
|
- name: Compress Windows Builds
|
||||||
|
@ -135,6 +136,7 @@ jobs:
|
||||||
mv statping-windows-4.0-${{ matrix.arch }}.exe statping.exe
|
mv statping-windows-4.0-${{ matrix.arch }}.exe statping.exe
|
||||||
chmod +x statping.exe
|
chmod +x statping.exe
|
||||||
zip statping-windows-${{ matrix.arch }}.zip statping.exe
|
zip statping-windows-${{ matrix.arch }}.zip statping.exe
|
||||||
|
rm -rf statping.exe
|
||||||
echo ::set-env name=compressed::statping-windows-${{ matrix.arch }}.zip
|
echo ::set-env name=compressed::statping-windows-${{ matrix.arch }}.zip
|
||||||
|
|
||||||
- name: Compress Darwin Builds
|
- name: Compress Darwin Builds
|
||||||
|
@ -144,6 +146,7 @@ jobs:
|
||||||
mv statping-darwin-10.6-${{ matrix.arch }} statping
|
mv statping-darwin-10.6-${{ matrix.arch }} statping
|
||||||
chmod +x statping
|
chmod +x statping
|
||||||
tar -czvf statping-darwin-${{ matrix.arch }}.tar.gz statping
|
tar -czvf statping-darwin-${{ matrix.arch }}.tar.gz statping
|
||||||
|
rm -rf statping
|
||||||
echo ::set-env name=compressed::statping-darwin-${{ matrix.arch }}.tar.gz
|
echo ::set-env name=compressed::statping-darwin-${{ matrix.arch }}.tar.gz
|
||||||
|
|
||||||
- name: Upload Compiled Statping Binary
|
- name: Upload Compiled Statping Binary
|
||||||
|
@ -274,6 +277,24 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [postman_env_sqlite.json, postman_env_postgres.json, postman_env_mysql.json]
|
platform: [postman_env_sqlite.json, postman_env_postgres.json, postman_env_mysql.json]
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:10.8
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: root
|
||||||
|
POSTGRES_PASSWORD: password123
|
||||||
|
POSTGRES_DB: statping
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
|
mysql:
|
||||||
|
image: mysql:5.7
|
||||||
|
env:
|
||||||
|
MYSQL_ROOT_PASSWORD: password123
|
||||||
|
MYSQL_DATABASE: statping
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
|
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -289,8 +310,8 @@ jobs:
|
||||||
COMMIT: ${{ github.sha }}
|
COMMIT: ${{ github.sha }}
|
||||||
run: |
|
run: |
|
||||||
ls -R
|
ls -R
|
||||||
chmod +x statping
|
cd build && tar -xvf statping-linux-amd64.tar.gz
|
||||||
mv statping $(go env GOPATH)/bin/
|
mv statping /usr/local/bin/
|
||||||
|
|
||||||
- name: Run Statping
|
- name: Run Statping
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue