This commit is contained in:
Neil Alexander 2022-03-24 09:32:08 +00:00 committed by GitHub
parent b2bd143d88
commit f2dc11e05e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,8 +9,8 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
wasm: wasm:
name: WASM build test
timeout-minutes: 5 timeout-minutes: 5
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -58,7 +58,7 @@ jobs:
lint: lint:
timeout-minutes: 5 timeout-minutes: 5
if: "true" if: "true"
name: golangci-lint name: Linting
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -71,7 +71,7 @@ jobs:
test: test:
timeout-minutes: 5 timeout-minutes: 5
if: "true" if: "true"
name: Unit tests Go ${{ matrix.go }} name: Unit tests (Go ${{ matrix.go }})
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@ -95,6 +95,7 @@ jobs:
# build Dendrite for linux with different architectures and go versions # build Dendrite for linux with different architectures and go versions
build: build:
name: Build for Linux
timeout-minutes: 10 timeout-minutes: 10
if: "true" if: "true"
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -129,6 +130,7 @@ jobs:
# build for Windows 64-bit # build for Windows 64-bit
build_windows: build_windows:
name: Build for Windows
timeout-minutes: 10 timeout-minutes: 10
if: "true" if: "true"
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -139,7 +141,7 @@ jobs:
goarch: [ 'amd64' ] goarch: [ 'amd64' ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup go - name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
@ -162,6 +164,7 @@ jobs:
# Dummy step to gate other tests on without repeating the whole list # Dummy step to gate other tests on without repeating the whole list
initial-tests-done: initial-tests-done:
name: Initial tests passed
#if: "true" #if: "true"
if: ${{ !cancelled() }} # Run this even if prior jobs were skipped if: ${{ !cancelled() }} # Run this even if prior jobs were skipped
needs: [ test, build, build_windows ] needs: [ test, build, build_windows ]
@ -171,6 +174,7 @@ jobs:
# run database upgrade tests # run database upgrade tests
upgrade_test: upgrade_test:
name: Upgrade tests
timeout-minutes: 20 timeout-minutes: 20
needs: initial-tests-done needs: initial-tests-done
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -197,7 +201,7 @@ jobs:
sytest: sytest:
timeout-minutes: 20 timeout-minutes: 20
needs: initial-tests-done needs: initial-tests-done
name: "Sytest: ${{ matrix.label }}" name: "Sytest (${{ matrix.label }})"
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@ -208,10 +212,10 @@ jobs:
- label: SQLite, full HTTP APIs - label: SQLite, full HTTP APIs
api: full-http api: full-http
- label: Postgres - label: PostgreSQL
postgres: postgres postgres: postgres
- label: Postgres, full HTTP APIs - label: PostgreSQL, full HTTP APIs
postgres: postgres postgres: postgres
api: full-http api: full-http
container: container:
@ -223,14 +227,14 @@ jobs:
API: ${{ matrix.api && 1 }} API: ${{ matrix.api && 1 }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Run SyTest - name: Run Sytest
run: /bootstrap.sh dendrite run: /bootstrap.sh dendrite
working-directory: /src working-directory: /src
- name: Summarise results.tap - name: Summarise results.tap
if: ${{ always() }} if: ${{ always() }}
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
- name: Upload SyTest logs - name: Upload Sytest logs
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: ${{ always() }} if: ${{ always() }}
with: with:
@ -241,6 +245,7 @@ jobs:
# run Complement # run Complement
complement: complement:
name: Complement
timeout-minutes: 20 timeout-minutes: 20
needs: initial-tests-done needs: initial-tests-done
if: "true" if: "true"