mirror of https://github.com/statping/statping
fakey postman tests, removing for now...
parent
4266539e66
commit
6fd87b7a2f
|
@ -143,160 +143,160 @@ jobs:
|
||||||
env:
|
env:
|
||||||
COVERALLS: ${{ secrets.COVERALLS }}
|
COVERALLS: ${{ secrets.COVERALLS }}
|
||||||
|
|
||||||
test-postman-sqlite:
|
# test-postman-sqlite:
|
||||||
needs: compile
|
# needs: compile
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v2
|
# - uses: actions/setup-go@v2
|
||||||
with:
|
# with:
|
||||||
go-version: '1.14.2'
|
# go-version: '1.14.2'
|
||||||
|
#
|
||||||
- name: Setting ENV's
|
# - name: Setting ENV's
|
||||||
run: |
|
# run: |
|
||||||
echo "::add-path::$(go env GOPATH)/bin"
|
# echo "::add-path::$(go env GOPATH)/bin"
|
||||||
echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
# echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
||||||
echo ::set-env name=VERSION::$(cat version.txt)
|
# echo ::set-env name=VERSION::$(cat version.txt)
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
#
|
||||||
- name: Download Compiled Frontend (rice-box.go)
|
# - name: Download Compiled Frontend (rice-box.go)
|
||||||
uses: actions/download-artifact@v1
|
# uses: actions/download-artifact@v1
|
||||||
with:
|
# with:
|
||||||
name: static-rice-box
|
# name: static-rice-box
|
||||||
path: ./source
|
# path: ./source
|
||||||
|
#
|
||||||
- name: Install Statping
|
# - name: Install Statping
|
||||||
env:
|
# env:
|
||||||
VERSION: ${{ env.VERSION }}
|
# VERSION: ${{ env.VERSION }}
|
||||||
run: |
|
# run: |
|
||||||
make build
|
# make build
|
||||||
chmod +x statping
|
# chmod +x statping
|
||||||
mv statping $(go env GOPATH)/bin/
|
# mv statping $(go env GOPATH)/bin/
|
||||||
|
#
|
||||||
- name: Run Statping
|
# - name: Run Statping
|
||||||
run: |
|
# run: |
|
||||||
API_SECRET=demosecret123 statping --port=8585 > /dev/null &
|
# API_SECRET=demosecret123 statping --port=8585 > /dev/null &
|
||||||
sleep 5
|
# sleep 5
|
||||||
|
#
|
||||||
- name: Postman SQLite Tests
|
# - name: Postman SQLite Tests
|
||||||
uses: matt-ball/newman-action@master
|
# uses: matt-ball/newman-action@master
|
||||||
with:
|
# with:
|
||||||
apiKey: ${{ secrets.POSTMAN_API }}
|
# apiKey: ${{ secrets.POSTMAN_API }}
|
||||||
collection: ./dev/postman.json
|
# collection: ./dev/postman.json
|
||||||
environment: ./dev/postman_env_sqlite.json
|
# environment: ./dev/postman_env_sqlite.json
|
||||||
timeoutRequest: 30000
|
# timeoutRequest: 30000
|
||||||
delayRequest: 600
|
# delayRequest: 600
|
||||||
|
#
|
||||||
test-postman-mysql:
|
# test-postman-mysql:
|
||||||
needs: compile
|
# needs: compile
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
#
|
||||||
services:
|
# services:
|
||||||
mysql:
|
# mysql:
|
||||||
image: mysql:5.7
|
# image: mysql:5.7
|
||||||
env:
|
# env:
|
||||||
MYSQL_ROOT_PASSWORD: password123
|
# MYSQL_ROOT_PASSWORD: password123
|
||||||
MYSQL_DATABASE: statping
|
# MYSQL_DATABASE: statping
|
||||||
ports:
|
# ports:
|
||||||
- 3306:3306
|
# - 3306:3306
|
||||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
||||||
|
#
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v2
|
# - uses: actions/setup-go@v2
|
||||||
with:
|
# with:
|
||||||
go-version: '1.14.2'
|
# go-version: '1.14.2'
|
||||||
|
#
|
||||||
- name: Setting ENV's
|
# - name: Setting ENV's
|
||||||
run: |
|
# run: |
|
||||||
echo "::add-path::$(go env GOPATH)/bin"
|
# echo "::add-path::$(go env GOPATH)/bin"
|
||||||
echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
# echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
||||||
echo ::set-env name=VERSION::$(cat version.txt)
|
# echo ::set-env name=VERSION::$(cat version.txt)
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
#
|
||||||
- name: Download Compiled Frontend (rice-box.go)
|
# - name: Download Compiled Frontend (rice-box.go)
|
||||||
uses: actions/download-artifact@v1
|
# uses: actions/download-artifact@v1
|
||||||
with:
|
# with:
|
||||||
name: static-rice-box
|
# name: static-rice-box
|
||||||
path: ./source
|
# path: ./source
|
||||||
|
#
|
||||||
- name: Install Statping
|
# - name: Install Statping
|
||||||
env:
|
# env:
|
||||||
VERSION: ${{ env.VERSION }}
|
# VERSION: ${{ env.VERSION }}
|
||||||
run: |
|
# run: |
|
||||||
make build
|
# make build
|
||||||
chmod +x statping
|
# chmod +x statping
|
||||||
mv statping $(go env GOPATH)/bin/
|
# mv statping $(go env GOPATH)/bin/
|
||||||
|
#
|
||||||
- name: Run Statping
|
# - name: Run Statping
|
||||||
run: |
|
# run: |
|
||||||
API_SECRET=demosecret123 statping --port=8585 > /dev/null &
|
# API_SECRET=demosecret123 statping --port=8585 > /dev/null &
|
||||||
sleep 5
|
# sleep 5
|
||||||
|
#
|
||||||
- name: Postman MySQL Tests
|
# - name: Postman MySQL Tests
|
||||||
uses: matt-ball/newman-action@master
|
# uses: matt-ball/newman-action@master
|
||||||
with:
|
# with:
|
||||||
apiKey: ${{ secrets.POSTMAN_API }}
|
# apiKey: ${{ secrets.POSTMAN_API }}
|
||||||
collection: ./dev/postman.json
|
# collection: ./dev/postman.json
|
||||||
environment: ./dev/postman_env_mysql.json
|
# environment: ./dev/postman_env_mysql.json
|
||||||
timeoutRequest: 30000
|
# timeoutRequest: 30000
|
||||||
delayRequest: 600
|
# delayRequest: 600
|
||||||
|
#
|
||||||
test-postman-postgres:
|
# test-postman-postgres:
|
||||||
needs: compile
|
# needs: compile
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
#
|
||||||
services:
|
# services:
|
||||||
postgres:
|
# postgres:
|
||||||
image: postgres:10.8
|
# image: postgres:10.8
|
||||||
env:
|
# env:
|
||||||
POSTGRES_USER: root
|
# POSTGRES_USER: root
|
||||||
POSTGRES_PASSWORD: password123
|
# POSTGRES_PASSWORD: password123
|
||||||
POSTGRES_DB: statping
|
# POSTGRES_DB: statping
|
||||||
ports:
|
# ports:
|
||||||
- 5432:5432
|
# - 5432:5432
|
||||||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
# options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
|
#
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v2
|
# - uses: actions/setup-go@v2
|
||||||
with:
|
# with:
|
||||||
go-version: '1.14.2'
|
# go-version: '1.14.2'
|
||||||
|
#
|
||||||
- name: Setting ENV's
|
# - name: Setting ENV's
|
||||||
run: |
|
# run: |
|
||||||
echo "::add-path::$(go env GOPATH)/bin"
|
# echo "::add-path::$(go env GOPATH)/bin"
|
||||||
echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
# echo "::add-path::/opt/hostedtoolcache/node/10.20.1/x64/bin"
|
||||||
echo ::set-env name=VERSION::$(cat version.txt)
|
# echo ::set-env name=VERSION::$(cat version.txt)
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
#
|
||||||
- name: Download Compiled Frontend (rice-box.go)
|
# - name: Download Compiled Frontend (rice-box.go)
|
||||||
uses: actions/download-artifact@v1
|
# uses: actions/download-artifact@v1
|
||||||
with:
|
# with:
|
||||||
name: static-rice-box
|
# name: static-rice-box
|
||||||
path: ./source
|
# path: ./source
|
||||||
|
#
|
||||||
- name: Install Statping
|
# - name: Install Statping
|
||||||
env:
|
# env:
|
||||||
VERSION: ${{ env.VERSION }}
|
# VERSION: ${{ env.VERSION }}
|
||||||
run: |
|
# run: |
|
||||||
make build
|
# make build
|
||||||
chmod +x statping
|
# chmod +x statping
|
||||||
mv statping $(go env GOPATH)/bin/
|
# mv statping $(go env GOPATH)/bin/
|
||||||
|
#
|
||||||
- name: Run Statping
|
# - name: Run Statping
|
||||||
run: |
|
# run: |
|
||||||
API_SECRET=demosecret123 statping --port=8585 > /dev/null &
|
# API_SECRET=demosecret123 statping --port=8585 > /dev/null &
|
||||||
sleep 5
|
# sleep 5
|
||||||
|
#
|
||||||
- name: Postman Postgres Tests
|
# - name: Postman Postgres Tests
|
||||||
uses: matt-ball/newman-action@master
|
# uses: matt-ball/newman-action@master
|
||||||
with:
|
# with:
|
||||||
apiKey: ${{ secrets.POSTMAN_API }}
|
# apiKey: ${{ secrets.POSTMAN_API }}
|
||||||
collection: ./dev/postman.json
|
# collection: ./dev/postman.json
|
||||||
environment: ./dev/postman_env_postgres.json
|
# environment: ./dev/postman_env_postgres.json
|
||||||
timeoutRequest: 30000
|
# timeoutRequest: 30000
|
||||||
delayRequest: 600
|
# delayRequest: 600
|
||||||
|
|
||||||
build-binaries:
|
build-binaries:
|
||||||
needs: compile
|
needs: compile
|
||||||
|
@ -361,7 +361,7 @@ jobs:
|
||||||
path: ./build
|
path: ./build
|
||||||
|
|
||||||
upload-release:
|
upload-release:
|
||||||
needs: [test, test-postman-sqlite, test-postman-mysql, test-postman-postgres, build-binaries]
|
needs: [test, build-binaries]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
1
Makefile
1
Makefile
|
@ -330,5 +330,6 @@ certs:
|
||||||
-keyout key.pem \
|
-keyout key.pem \
|
||||||
-subj "/C=US/ST=California/L=Santa Monica/O=Statping/OU=Development/CN=localhost"
|
-subj "/C=US/ST=California/L=Santa Monica/O=Statping/OU=Development/CN=localhost"
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all build build-all build-alpine test-all test test-api docker frontend up down print_details lite sentry-release snapcraft build-linux build-mac build-win build-all postman
|
.PHONY: all build build-all build-alpine test-all test test-api docker frontend up down print_details lite sentry-release snapcraft build-linux build-mac build-win build-all postman
|
||||||
.SILENT: travis_s3_creds
|
.SILENT: travis_s3_creds
|
||||||
|
|
Loading…
Reference in New Issue