forked from environ-developers/Environ
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.13 KB
/
ci.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
44
name: CI
on:
push:
branches:
- master
- develop
- containerization
pull_request:
jobs:
compile:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: Dockerfile
sparse-checkout-cone-mode: false
- uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
tags: environ
outputs: type=docker,dest=/tmp/environ.tar
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: environ
path: /tmp/environ.tar
test:
needs: compile
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v2
with:
name: environ
path: /tmp
- name: Load image
run: docker load --input /tmp/environ.tar
- name: Run container
run: docker run --interactive --name ci-environ environ
- name: Run tests
run: docker exec ci-environ sh -c "cd /app/q-e/Environ/tests && make --ignore-errors run-tests-parallel"