Add tests #25
Workflow file for this run
This file contains hidden or 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: testing | |
| on: | |
| push: | |
| branches: main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: read-all | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-26.04 | |
| strategy: | |
| matrix: | |
| version: [17, 18] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Docker version info | |
| run: | | |
| docker --version | |
| docker compose --version | |
| - name: Build kiwitcms/postgres:${{ matrix.version }} | |
| working-directory: ${{ matrix.version }} | |
| run: | | |
| docker build -t kiwitcms/postgres:${{ matrix.version }} . | |
| docker images | |
| test: | |
| runs-on: ubuntu-26.04 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install packages used during container testing | |
| run: | | |
| # used in test scripts | |
| sudo apt-get install git make sscg | |
| # install beakerlib from source it doesn't ship DEB packages | |
| if [ ! -f "/usr/share/beakerlib/beakerlib.sh" ]; then | |
| git clone https://github.com/beakerlib/beakerlib.git | |
| sudo make -C beakerlib/ install | |
| fi | |
| - name: Run tests | |
| run: | | |
| ./testing/runner.sh |