forked from mirror/prosody
b70fcbd98e
Created a tests folder which contains pytest and bats tests. Pytest is used to login and send messages to other accounts. Bats is used to check the log for debug messages. This fixes #13.
26 lines
478 B
YAML
26 lines
478 B
YAML
name: Test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: dev
|
|
push:
|
|
branches: dev
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Checkout submodules
|
|
uses: textbook/git-checkout-submodule-action@master
|
|
|
|
- name: install python3-venv
|
|
run: sudo apt-get install python3-venv
|
|
|
|
- name: build test image
|
|
run: docker build . -t prosody
|
|
|
|
- name: run tests
|
|
run: cd ./tests/ && ./test.bash
|