tests #1121
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
name: tests | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "*.*" | |
schedule: | |
- cron: "12 12 * * *" | |
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: Download and start db containers | |
run: make docker_dbs_setup_up | |
- name: Build image and run tests in container | |
env: | |
OGION_ARCH: ${{ matrix.arch }} | |
run: | | |
touch .env | |
make unit_tests |