Skip to content

Tests

Tests #425

Workflow file for this run

name: Tests
on:
push:
pull_request:
workflow_dispatch:
schedule:
# On Sundays at 01:00
- cron: '0 1 * * SUN'
jobs:
testing:
runs-on: ubuntu-latest
strategy:
matrix:
test_platform: ['ArchLinux','Debian-stable','Debian-testing','Fedora','Fedora-32','Fedora-rawhide','Ubuntu']
fail-fast: false
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Compile images
run: bash ./test.sh ${{ matrix.test_platform }}
- name: Push images
run: |
[ -n "$ACTIONS_RUNNER_DEBUG" ] && set -x
if ${{ github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}} && ${{ github.ref == 'refs/heads/master' }}; then
docker login -u maxgimeno -p ${{ secrets.PASSWD }}
bash ./push.sh ${{ matrix.test_platform }}
else
echo "Don't upload on pull_requests"
fi