forked from matrix-org/complement
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.08 KB
/
ci.yaml
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
45
46
name: Tests
on:
push:
branches: [ 'master' ]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get -qq install libolm-dev
- uses: golangci/golangci-lint-action@v2
with:
version: v1.39
args: ./internal/... ./tests/...
complement:
needs: lint
runs-on: ubuntu-latest
strategy:
matrix:
include:
- homeserver: Synapse
tags: synapse_blacklist
- homeserver: Dendrite
tags: msc2836 dendrite_blacklist
container:
image: matrixdotorg/complement # dockerfiles/ComplementCIBuildkite.Dockerfile
env:
CI: true
DOCKER_BUILDKIT: 1
ports:
- 8448:8448
volumes:
- /var/run/docker.sock:/var/run/docker.sock
steps:
- uses: actions/checkout@v2
- run: docker build -t homeserver -f dockerfiles/${{ matrix.homeserver }}.Dockerfile dockerfiles/
- run: go test -v -tags "${{ matrix.tags }}" ./tests
env:
COMPLEMENT_BASE_IMAGE: homeserver