Skip to content

Commit cc57cdb

Browse files
author
David Robertson
authored
Merge pull request #27 from matrix-org/dmr/gha
2 parents 80f9866 + 274b8c9 commit cc57cdb

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: main
5+
pull_request:
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
# When CI ran on BuildKite, we used to also run the following script to build a
18+
# Synapse docker image from scratch.
19+
# I leave it here for posterity and completeness.
20+
# - name: Prepare the Docker image for Synapse `develop`
21+
# run: test/before_test.sh
22+
- name: Setup services and launch tests
23+
run: docker-compose up --build --abort-on-container-exit
24+
25+

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A Dockerfile used for running tests.
22
# This Dockerfile should work for other plug-ins, too.
33

4-
FROM matrixdotorg/synapse:latest
4+
FROM matrixdotorg/synapse:develop
55

66
# Install extension.
77
WORKDIR /data

test/before_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
\rm -Rf synapse
66
git clone https://github.com/matrix-org/synapse.git
7-
docker build -t matrixdotorg/synapse -f synapse/docker/Dockerfile synapse
7+
DOCKER_BUILDKIT=1 docker build -t matrixdotorg/synapse -f synapse/docker/Dockerfile synapse

0 commit comments

Comments
 (0)