|
1 | 1 | name: Tests |
2 | 2 |
|
3 | | -permissions: |
4 | | - contents: read |
5 | | - actions: read |
| 3 | +permissions: {} |
6 | 4 |
|
7 | 5 | on: |
8 | 6 | push: |
@@ -87,38 +85,38 @@ jobs: |
87 | 85 | docker tag ghcr.io/matrix-org/synapse-service:v1.117.0 homeserver:latest |
88 | 86 |
|
89 | 87 | # Build homeserver image, honouring branch names |
90 | | - #- name: "Checkout corresponding Synapse branch" |
91 | | - #shell: bash |
92 | | - #run: | |
93 | | - #mkdir -p homeserver |
94 | | -# |
95 | | - ## Attempt to use the version of the homeserver which best matches the |
96 | | - ## current build. |
97 | | - ## |
98 | | - ## 1. If we are not on complement's default branch, check if there's a |
99 | | - ## similarly named branch (GITHUB_HEAD_REF for pull requests, |
100 | | - ## otherwise GITHUB_REF). |
101 | | - ## 2. otherwise, use the default homeserver branch ("HEAD") |
102 | | -# |
103 | | - #for BRANCH_NAME in "$GITHUB_HEAD_REF" "${GITHUB_REF#refs/heads/}" "HEAD"; do |
104 | | - ## Skip empty branch names, merge commits, and our default branch. |
105 | | - ## (If we are on complement's default branch, we want to fall through to the HS's default branch |
106 | | - ## rather than using the HS's 'master'/'main'). |
107 | | - #case "$BRANCH_NAME" in |
108 | | - #"" | refs/pull/* | main | master) |
109 | | - #continue |
110 | | - #;; |
111 | | - #esac |
112 | | - #(wget -O - "https://github.com/matrix-org/synapse/archive/$BRANCH_NAME.tar.gz" | tar -xz --strip-components=1 -C homeserver) && break |
113 | | - #done |
114 | | - ## Build the base Synapse dockerfile and then build a Complement-specific image from that base. |
115 | | - #- run: | |
116 | | - #docker build -t matrixdotorg/synapse:latest -f docker/Dockerfile . |
117 | | - #docker build -t matrixdotorg/synapse-workers:latest -f docker/Dockerfile-workers . |
118 | | - #docker build -t homeserver -f docker/complement/Dockerfile docker/complement |
119 | | - #working-directory: homeserver |
120 | | - #env: |
121 | | - #DOCKER_BUILDKIT: 1 |
| 88 | + #- name: "Checkout corresponding Synapse branch" |
| 89 | + #shell: bash |
| 90 | + #run: | |
| 91 | + #mkdir -p homeserver |
| 92 | + # |
| 93 | + ## Attempt to use the version of the homeserver which best matches the |
| 94 | + ## current build. |
| 95 | + ## |
| 96 | + ## 1. If we are not on complement's default branch, check if there's a |
| 97 | + ## similarly named branch (GITHUB_HEAD_REF for pull requests, |
| 98 | + ## otherwise GITHUB_REF). |
| 99 | + ## 2. otherwise, use the default homeserver branch ("HEAD") |
| 100 | + # |
| 101 | + #for BRANCH_NAME in "$GITHUB_HEAD_REF" "${GITHUB_REF#refs/heads/}" "HEAD"; do |
| 102 | + ## Skip empty branch names, merge commits, and our default branch. |
| 103 | + ## (If we are on complement's default branch, we want to fall through to the HS's default branch |
| 104 | + ## rather than using the HS's 'master'/'main'). |
| 105 | + #case "$BRANCH_NAME" in |
| 106 | + #"" | refs/pull/* | main | master) |
| 107 | + #continue |
| 108 | + #;; |
| 109 | + #esac |
| 110 | + #(wget -O - "https://github.com/matrix-org/synapse/archive/$BRANCH_NAME.tar.gz" | tar -xz --strip-components=1 -C homeserver) && break |
| 111 | + #done |
| 112 | + ## Build the base Synapse dockerfile and then build a Complement-specific image from that base. |
| 113 | + #- run: | |
| 114 | + #docker build -t matrixdotorg/synapse:latest -f docker/Dockerfile . |
| 115 | + #docker build -t matrixdotorg/synapse-workers:latest -f docker/Dockerfile-workers . |
| 116 | + #docker build -t homeserver -f docker/complement/Dockerfile docker/complement |
| 117 | + #working-directory: homeserver |
| 118 | + #env: |
| 119 | + #DOCKER_BUILDKIT: 1 |
122 | 120 | - name: "Run Complement-Crypto unit tests" |
123 | 121 | env: |
124 | 122 | COMPLEMENT_BASE_IMAGE: homeserver |
|
0 commit comments