Skip to content

Make leech production ready iteration #1 #1

Make leech production ready iteration #1

Make leech production ready iteration #1 #1

Workflow file for this run

name: Acceptance tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create PostgreSQL repository configuration
run: sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
- name: Import PostgreSQL repository signing key
run: wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- name: Update apt repositories
run: sudo apt -y update
- name: Install dependencies
run: sudo apt -y install check libtool-bin valgrind postgresql
- name: Start PostgreSQL server
run: sudo systemctl start postgresql.service
- name: Create database
run: sudo -u postgres createdb leech
- name: Create PostgreSQL user
run: sudo -u postgres createuser --superuser `whoami`
- name: Bootstrap project
run: ./bootstrap.sh
- name: Configure project
run: ./configure --enable-debug
- name: Compile project
run: make
- name: Run acceptance tests
run: cd tests && python3 acceptance.py