Skip to content

Commit 09ac587

Browse files
committed
Merge branch 'callahad/actions': Use GitHub Actions for CI (#94)
2 parents 0682c85 + d6d5486 commit 09ac587

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ 'master' ]
6+
pull_request:
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: sudo apt-get -qq install libolm-dev
14+
- uses: golangci/golangci-lint-action@v2
15+
with:
16+
version: v1.39
17+
args: ./internal/... ./tests/...
18+
19+
complement:
20+
needs: lint
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
include:
25+
- homeserver: Synapse
26+
tags: synapse_blacklist
27+
28+
- homeserver: Dendrite
29+
tags: msc2836
30+
31+
container:
32+
image: matrixdotorg/complement # dockerfiles/ComplementCIBuildkite.Dockerfile
33+
env:
34+
CI: true
35+
DOCKER_BUILDKIT: 1
36+
ports:
37+
- 8448:8448
38+
volumes:
39+
- /var/run/docker.sock:/var/run/docker.sock
40+
41+
steps:
42+
- uses: actions/checkout@v2
43+
- run: docker build -t homeserver -f dockerfiles/${{ matrix.homeserver }}.Dockerfile dockerfiles/
44+
- run: go test -v -tags "${{ matrix.tags }}" ./tests
45+
env:
46+
COMPLEMENT_BASE_IMAGE: homeserver

0 commit comments

Comments
 (0)