|
14 | 14 | complement-internal: |
15 | 15 | runs-on: ubuntu-latest |
16 | 16 | steps: |
17 | | - - uses: actions/checkout@v2 # Checkout complement |
18 | | - - name: "Set Go Version" |
19 | | - run: | |
20 | | - echo "$GOROOT_1_17_X64/bin" >> $GITHUB_PATH |
21 | | - echo "~/go/bin" >> $GITHUB_PATH |
| 17 | + - uses: actions/checkout@v3 # Checkout complement |
| 18 | + - uses: actions/setup-go@v4 |
22 | 19 | - name: "Install Complement Dependencies" |
23 | | - # We don't need to install Go because it is included on the Ubuntu 20.04 image: |
24 | | - # See https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md specifically GOROOT_1_17_X64 |
25 | 20 | run: | |
26 | 21 | sudo apt-get update && sudo apt-get install -y libolm3 libolm-dev |
27 | 22 | - name: "Run internal Complement tests" |
@@ -53,27 +48,20 @@ jobs: |
53 | 48 | timeout: 10m |
54 | 49 |
|
55 | 50 | steps: |
56 | | - - uses: actions/checkout@v2 # Checkout complement |
57 | | - |
58 | | - # Env vars are set file a file given by $GITHUB_PATH. We need both Go 1.17 and GOPATH on env. |
59 | | - # See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path |
60 | | - - name: "Set Go Version" |
61 | | - run: | |
62 | | - echo "$GOROOT_1_17_X64/bin" >> $GITHUB_PATH |
63 | | - echo "~/go/bin" >> $GITHUB_PATH |
| 51 | + - uses: actions/checkout@v3 # Checkout complement |
64 | 52 |
|
| 53 | + - uses: actions/setup-go@v4 |
65 | 54 | # Similar steps as dockerfiles/ComplementCIBuildkite.Dockerfile but on the host. We need |
66 | 55 | # to do this so we can _be_ the host when running Complement so we can snaffle all the ports. If |
67 | 56 | # we run Complement _in_ Docker then we can't -p all high numbered ports which then breaks federation |
68 | 57 | # servers which listen on random high numbered ports. |
69 | 58 | - name: "Install Complement Dependencies" |
70 | | - # We don't need to install Go because it is included on the Ubuntu 20.04 image: |
71 | | - # See https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md specifically GOROOT_1_17_X64 |
72 | 59 | run: | |
73 | 60 | sudo apt-get update && sudo apt-get install -y libolm3 libolm-dev |
74 | | - go get -v github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest |
| 61 | + go install -v github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest |
75 | 62 | mkdir .gotestfmt/github -p |
76 | 63 | cp .ci/complement_package.gotpl .gotestfmt/github/package.gotpl |
| 64 | + gotestfmt -help |
77 | 65 |
|
78 | 66 | - name: "Checkout corresponding ${{ matrix.homeserver }} branch" |
79 | 67 | shell: bash |
|
0 commit comments