refactor: enable QA tests and jafar self test (#208)

* refactor: enable QA tests and jafar self test

Part of https://github.com/ooni/probe/issues/1335

* chore: make sure all workflows run on release branches
This commit is contained in:
Simone Basso 2021-02-03 13:20:37 +01:00 committed by GitHub
parent 4eeadd06a5
commit 0c48bc0746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 18 additions and 3 deletions

View File

@ -1,5 +1,8 @@
name: jafar name: jafar
on: on:
push:
branches:
- 'release/**'
schedule: schedule:
- cron: "0 5 * * 3" - cron: "0 5 * * 3"
jobs: jobs:
@ -10,5 +13,5 @@ jobs:
with: with:
go-version: "1.14" go-version: "1.14"
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: go build -v ./cmd/jafar - run: go build -v ./internal/cmd/jafar
- run: sudo ./testjafar.bash - run: sudo ./testjafar.bash

View File

@ -2,6 +2,9 @@ name: "qahhfm"
on: on:
schedule: schedule:
- cron: "5 3 * * */1" - cron: "5 3 * * */1"
push:
branches:
- 'release/**'
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -2,6 +2,9 @@ name: "qahirl"
on: on:
schedule: schedule:
- cron: "10 3 * * */1" - cron: "10 3 * * */1"
push:
branches:
- 'release/**'
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -2,6 +2,9 @@ name: "qatelegram"
on: on:
schedule: schedule:
- cron: "15 3 * * */1" - cron: "15 3 * * */1"
push:
branches:
- 'release/**'
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -2,6 +2,9 @@ name: "qawhatsapp"
on: on:
schedule: schedule:
- cron: "25 3 * * */1" - cron: "25 3 * * */1"
push:
branches:
- 'release/**'
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
set -ex set -ex
export GOPATH=/jafar/QA/GOPATH GOCACHE=/jafar/QA/GOCACHE GO111MODULE=on export GOPATH=/jafar/QA/GOPATH GOCACHE=/jafar/QA/GOCACHE GO111MODULE=on
go build -v ./cmd/miniooni go build -v ./internal/cmd/miniooni
go build -v ./cmd/jafar go build -v ./internal/cmd/jafar
sudo ./QA/$1.py ./miniooni sudo ./QA/$1.py ./miniooni