-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 897 Bytes
/
tests.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
name: tests
on:
push:
branches:
- "**"
tags-ignore:
- "*.*"
jobs:
tests:
strategy:
matrix:
arch: ["amd64", "arm64"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: linux/${{ matrix.arch }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Touch .env
run: touch .env
- name: Download and start db containers
run: docker compose up -d postgres_15 postgres_14 postgres_13 postgres_12 postgres_11 mysql_57 mysql_80 mariadb_1011 mariadb_1006 mariadb_1005 mariadb_1004
- name: Build image and run tests in container
run: docker compose run --rm --build backuper_tests_${{ matrix.arch }}