mirror of https://github.com/statping/statping
github actions cypress testing
parent
ec762336b4
commit
aeadd738c6
|
@ -126,14 +126,14 @@ jobs:
|
||||||
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
|
||||||
|
@ -161,9 +161,10 @@ jobs:
|
||||||
start: yarn start
|
start: yarn start
|
||||||
wait-on: 'http://localhost:8080/api'
|
wait-on: 'http://localhost:8080/api'
|
||||||
config: pageLoadTimeout=100000,watchForFileChanges=false
|
config: pageLoadTimeout=100000,watchForFileChanges=false
|
||||||
|
browser: chrome
|
||||||
|
|
||||||
build-mac:
|
build-mac:
|
||||||
needs: test
|
needs: compile
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
|
@ -212,7 +213,7 @@ jobs:
|
||||||
build/statping-darwin-amd64.tar.gz
|
build/statping-darwin-amd64.tar.gz
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
needs: test
|
needs: compile
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
|
@ -270,7 +271,7 @@ jobs:
|
||||||
build/statping-openbsd-arm64.tar.gz
|
build/statping-openbsd-arm64.tar.gz
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
needs: test
|
needs: compile
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
|
@ -320,7 +321,7 @@ jobs:
|
||||||
build/statping-windows-arm.zip
|
build/statping-windows-arm.zip
|
||||||
|
|
||||||
docker-release:
|
docker-release:
|
||||||
needs: [cypress-tests, build-linux, build-mac, build-windows]
|
needs: [test, cypress-tests, build-linux, build-mac, build-windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Statping Repo
|
- name: Checkout Statping Repo
|
||||||
|
@ -349,7 +350,7 @@ jobs:
|
||||||
tags: "latest,v${{ env.VERSION }}"
|
tags: "latest,v${{ env.VERSION }}"
|
||||||
|
|
||||||
sentry-release:
|
sentry-release:
|
||||||
needs: [build-linux, build-mac, build-windows]
|
needs: [test, cypress-tests, build-linux, build-mac, build-windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Statping Repo
|
- name: Checkout Statping Repo
|
||||||
|
@ -382,7 +383,7 @@ jobs:
|
||||||
environment: production
|
environment: production
|
||||||
|
|
||||||
homebrew-release:
|
homebrew-release:
|
||||||
needs: [build-linux, build-mac, build-windows]
|
needs: [test, cypress-tests, build-linux, build-mac, build-windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Statping Repo
|
- name: Checkout Statping Repo
|
||||||
|
@ -399,7 +400,7 @@ jobs:
|
||||||
run: make publish-homebrew
|
run: make publish-homebrew
|
||||||
|
|
||||||
slack-update:
|
slack-update:
|
||||||
needs: [build-linux, build-mac, build-windows]
|
needs: [test, cypress-tests, build-linux, build-mac, build-windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Statping Repo
|
- name: Checkout Statping Repo
|
||||||
|
|
Loading…
Reference in New Issue