-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (28 loc) · 808 Bytes
/
tests.yml
File metadata and controls
36 lines (28 loc) · 808 Bytes
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
# Controls when the workflow will run
on:
# Allows run this workflow manually from the Actions tab
workflow_dispatch:
env:
TEST_TAG: ggciag/mandyoc:test
jobs:
# Build the docker image and run tests
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and export to Docker
uses: docker/build-push-action@v2
with:
context: .
file: docker/mandyoc/Dockerfile
load: true
tags: ${{ env.TEST_TAG }}
- name: Tests
run: |
docker run --rm ${{ env.TEST_TAG }} bash -c 'cd mandyoc && make test'