Add simple whitelist (can contain false negatives) #289
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Dependencys | |
run: sudo apt-get install -y shellcheck figlet screen expect gdb | |
- name: Shellcheck | |
run: find . -type f -name '*.sh' -print0 | xargs -0 shellcheck | |
- name: Minimal setup | |
run: | | |
touch autoexec.cfg | |
{ | |
echo "git_root=/home/$USER" | |
echo "gitpath_mod=/home/$USER/teeworlds" | |
echo "gitpath_log=/home/$USER/.teeworlds/dumps/TeeworldsLogs" | |
echo "server_name=test-srv" | |
echo "editor=touch" | |
} > server.cnf | |
mkdir -p /home/$USER/.teeworlds/dumps/TeeworldsLogs/test-srv/logs | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
git config --global init.defaultBranch master | |
- name: Unit tests | |
run: ./lib/run_tests.sh | |
- name: Integration tests | |
run: ./lib/test/integration/integration_test.sh |