fakey postman tests, removing for now...

pull/655/head
hunterlong 2020-06-10 20:51:24 -07:00
parent 4266539e66
commit 6fd87b7a2f
2 changed files with 156 additions and 155 deletions

View File

@ -143,160 +143,160 @@ jobs:
env:
COVERALLS: ${{ secrets.COVERALLS }}
test-postman-sqlite:
needs: compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.14.2'
- name: Setting ENV's
run: |
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)
shell: bash
- name: Download Compiled Frontend (rice-box.go)
uses: actions/download-artifact@v1
with:
name: static-rice-box
path: ./source
- name: Install Statping
env:
VERSION: ${{ env.VERSION }}
run: |
make build
chmod +x statping
mv statping $(go env GOPATH)/bin/
- name: Run Statping
run: |
API_SECRET=demosecret123 statping --port=8585 > /dev/null &
sleep 5
- name: Postman SQLite Tests
uses: matt-ball/newman-action@master
with:
apiKey: ${{ secrets.POSTMAN_API }}
collection: ./dev/postman.json
environment: ./dev/postman_env_sqlite.json
timeoutRequest: 30000
delayRequest: 600
test-postman-mysql:
needs: compile
runs-on: ubuntu-latest
services:
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:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.14.2'
- name: Setting ENV's
run: |
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)
shell: bash
- name: Download Compiled Frontend (rice-box.go)
uses: actions/download-artifact@v1
with:
name: static-rice-box
path: ./source
- name: Install Statping
env:
VERSION: ${{ env.VERSION }}
run: |
make build
chmod +x statping
mv statping $(go env GOPATH)/bin/
- name: Run Statping
run: |
API_SECRET=demosecret123 statping --port=8585 > /dev/null &
sleep 5
- name: Postman MySQL Tests
uses: matt-ball/newman-action@master
with:
apiKey: ${{ secrets.POSTMAN_API }}
collection: ./dev/postman.json
environment: ./dev/postman_env_mysql.json
timeoutRequest: 30000
delayRequest: 600
test-postman-postgres:
needs: compile
runs-on: ubuntu-latest
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
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.14.2'
- name: Setting ENV's
run: |
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)
shell: bash
- name: Download Compiled Frontend (rice-box.go)
uses: actions/download-artifact@v1
with:
name: static-rice-box
path: ./source
- name: Install Statping
env:
VERSION: ${{ env.VERSION }}
run: |
make build
chmod +x statping
mv statping $(go env GOPATH)/bin/
- name: Run Statping
run: |
API_SECRET=demosecret123 statping --port=8585 > /dev/null &
sleep 5
- name: Postman Postgres Tests
uses: matt-ball/newman-action@master
with:
apiKey: ${{ secrets.POSTMAN_API }}
collection: ./dev/postman.json
environment: ./dev/postman_env_postgres.json
timeoutRequest: 30000
delayRequest: 600
# test-postman-sqlite:
# needs: compile
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v2
# with:
# go-version: '1.14.2'
#
# - name: Setting ENV's
# run: |
# 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)
# shell: bash
#
# - name: Download Compiled Frontend (rice-box.go)
# uses: actions/download-artifact@v1
# with:
# name: static-rice-box
# path: ./source
#
# - name: Install Statping
# env:
# VERSION: ${{ env.VERSION }}
# run: |
# make build
# chmod +x statping
# mv statping $(go env GOPATH)/bin/
#
# - name: Run Statping
# run: |
# API_SECRET=demosecret123 statping --port=8585 > /dev/null &
# sleep 5
#
# - name: Postman SQLite Tests
# uses: matt-ball/newman-action@master
# with:
# apiKey: ${{ secrets.POSTMAN_API }}
# collection: ./dev/postman.json
# environment: ./dev/postman_env_sqlite.json
# timeoutRequest: 30000
# delayRequest: 600
#
# test-postman-mysql:
# needs: compile
# runs-on: ubuntu-latest
#
# services:
# 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:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v2
# with:
# go-version: '1.14.2'
#
# - name: Setting ENV's
# run: |
# 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)
# shell: bash
#
# - name: Download Compiled Frontend (rice-box.go)
# uses: actions/download-artifact@v1
# with:
# name: static-rice-box
# path: ./source
#
# - name: Install Statping
# env:
# VERSION: ${{ env.VERSION }}
# run: |
# make build
# chmod +x statping
# mv statping $(go env GOPATH)/bin/
#
# - name: Run Statping
# run: |
# API_SECRET=demosecret123 statping --port=8585 > /dev/null &
# sleep 5
#
# - name: Postman MySQL Tests
# uses: matt-ball/newman-action@master
# with:
# apiKey: ${{ secrets.POSTMAN_API }}
# collection: ./dev/postman.json
# environment: ./dev/postman_env_mysql.json
# timeoutRequest: 30000
# delayRequest: 600
#
# test-postman-postgres:
# needs: compile
# runs-on: ubuntu-latest
#
# 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
#
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v2
# with:
# go-version: '1.14.2'
#
# - name: Setting ENV's
# run: |
# 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)
# shell: bash
#
# - name: Download Compiled Frontend (rice-box.go)
# uses: actions/download-artifact@v1
# with:
# name: static-rice-box
# path: ./source
#
# - name: Install Statping
# env:
# VERSION: ${{ env.VERSION }}
# run: |
# make build
# chmod +x statping
# mv statping $(go env GOPATH)/bin/
#
# - name: Run Statping
# run: |
# API_SECRET=demosecret123 statping --port=8585 > /dev/null &
# sleep 5
#
# - name: Postman Postgres Tests
# uses: matt-ball/newman-action@master
# with:
# apiKey: ${{ secrets.POSTMAN_API }}
# collection: ./dev/postman.json
# environment: ./dev/postman_env_postgres.json
# timeoutRequest: 30000
# delayRequest: 600
build-binaries:
needs: compile
@ -361,7 +361,7 @@ jobs:
path: ./build
upload-release:
needs: [test, test-postman-sqlite, test-postman-mysql, test-postman-postgres, build-binaries]
needs: [test, build-binaries]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -330,5 +330,6 @@ certs:
-keyout key.pem \
-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
.SILENT: travis_s3_creds