-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (41 loc) · 1.25 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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