.github/workflows/main.yml #182
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
on: | |
push: | |
schedule: | |
- cron: '28 3 * * *' # every day | |
jobs: | |
build-and-run: | |
runs-on: ubuntu-latest | |
name: Run tests against the latest git binary from Arch Linux | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Build Arch Linux docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ci/Dockerfile | |
push: false | |
tags: test-image:latest | |
- name: Run tests in Arch Linux docker against recent git | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: test-image:latest | |
run: python3 /opt/test/src/test_git_meld_index.py | |
build-and-run-with-old-git: | |
runs-on: ubuntu-latest | |
name: Run tests against an older git binary from Debian | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Build Debian docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ci/Dockerfile.debian | |
push: false | |
tags: test-image:latest | |
- name: Run tests in Debian docker against older git | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: test-image:latest | |
run: python3 /opt/test/src/test_git_meld_index.py |