Automated browser testing (#1415)
* Move automated api tests to api directory * First pass at automated browser testing
This commit is contained in:
14
.github/workflows/automated-browser.yml
vendored
Normal file
14
.github/workflows/automated-browser.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
name: Automated browser tests
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
browser:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run browser tests
|
||||
run: cd test/automated/browser && ./run.sh
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: screenshots-${{ github.run_id }}
|
||||
path: test/automated/browser/screenshots/*.png
|
||||
21
.github/workflows/automated-end-to-end-api.yaml
vendored
Normal file
21
.github/workflows/automated-end-to-end-api.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Automated API tests
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'webroot/**'
|
||||
- pkged.go
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'webroot/**'
|
||||
- pkged.go
|
||||
|
||||
jobs:
|
||||
api:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run API tests
|
||||
run: cd test/automated/api && ./run.sh
|
||||
|
||||
|
||||
16
.github/workflows/automated-end-to-end.yaml
vendored
16
.github/workflows/automated-end-to-end.yaml
vendored
@@ -1,16 +0,0 @@
|
||||
name: Automated end to end tests
|
||||
|
||||
on:
|
||||
push:
|
||||
# branches:
|
||||
# - develop
|
||||
pull_request:
|
||||
branches: develop
|
||||
|
||||
jobs:
|
||||
Jest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup and run
|
||||
run: cd test/automated && ./run.sh
|
||||
Reference in New Issue
Block a user