-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.03 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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: golang:1.21
steps:
- uses: actions/checkout@v3
- name: Run make test
run: make test
- name: Run make build
run: make build
test:
runs-on: ubuntu-latest
services:
docker:
image: docker:19.03.12
options: --privileged
steps:
- name: Install docker-compose
run: sudo apt-get install -y docker-compose
- uses: actions/checkout@v3
- name: Build the Docker images
run: docker-compose build
- name: Run containers in the background
run: docker-compose up -d
- name: build brucutu
run: docker-compose exec -T runner bash -c "cd /brucutu && make build"
- name: Execute tests in runner container
run: docker-compose exec -T runner bash -c "cd /brucutu && make test"
- name: Execute integration tests in runner container
run: docker-compose exec -T runner bash -c "cd /brucutu && make integration"