From 1f28a4041a5459250f4e8328cdf08d12bb20c1c6 Mon Sep 17 00:00:00 2001
From: Travis Ralston <travpc@gmail.com>
Date: Mon, 8 Nov 2021 15:33:56 -0700
Subject: [PATCH] CI: Introduce experimental workflow

---
 .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .github/workflows/main.yml

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..372bb082
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,34 @@
+name: Main
+on:
+  push:
+jobs:
+  build:
+    name: 'Build Go 1.16'
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-go@v2
+        with:
+          go-version: '1.16'
+      - run: './build.sh'
+  complement:
+    name: 'Complement'
+    runs-on: ubuntu-latest
+    container:
+      # https://github.com/matrix-org/complement/blob/master/dockerfiles/ComplementCIBuildkite.Dockerfile
+      image: matrixdotorg/complement:latest
+      env:
+        CI: true
+      ports:
+        - 8448:8448
+      volumes:
+        - /var/run/docker.sock:/var/run/docker.sock
+    steps:
+      - uses: actions/checkout@v2
+      - run: docker build -t complement-media-repo -f Complement.Dockerfile .
+      - run: chmod +x ci-complement.sh
+      - run: ./ci-complement.sh
+        env:
+          CI: "true"
+          COMPLEMENT_BASE_IMAGE: "complement-media-repo"
+          COMPLEMENT_VERSION_CHECK_ITERATIONS: "400"
-- 
GitLab