2021-06-09 11:17:12 +00:00
|
|
|
name: Develop jobs
|
2021-06-09 09:38:28 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [develop]
|
|
|
|
pull_request:
|
|
|
|
branches: [develop]
|
2021-06-08 11:52:32 +00:00
|
|
|
jobs:
|
2021-06-09 11:17:12 +00:00
|
|
|
end-to-end:
|
2021-06-08 11:52:32 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-06-09 11:17:49 +00:00
|
|
|
container: vectorim/element-web-ci-e2etests-env:latest
|
2021-06-08 11:52:32 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: End-to-End tests
|
|
|
|
run: ./scripts/ci/end-to-end-tests.sh
|
|
|
|
- name: Archive logs
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
test/end-to-end-tests/logs/**/*
|
|
|
|
test/end-to-end-tests/synapse/installations/consent/homeserver.log
|
|
|
|
retention-days: 14
|
2021-06-14 13:53:22 +00:00
|
|
|
- name: Download previous benchmark data
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ./cache
|
|
|
|
key: ${{ runner.os }}-benchmark
|
|
|
|
- name: Temporary step before having a fully release GitHub action
|
|
|
|
run: npm install && npm run build
|
|
|
|
working-directory: /home/runner/work/_actions/matrix-org/github-action-benchmark/9f891b47906b73678ba486f7a53e4807e24fff19
|
|
|
|
- name: Store benchmark result
|
|
|
|
uses: matrix-org/github-action-benchmark@9f891b47906b73678ba486f7a53e4807e24fff19
|
2021-06-08 11:52:32 +00:00
|
|
|
with:
|
2021-06-14 13:53:22 +00:00
|
|
|
tool: 'jsperformanceentry'
|
|
|
|
output-file-path: test/end-to-end-tests/performance-entries.json
|
|
|
|
external-data-json-path: ./cache/benchmark-data-template.json
|
|
|
|
fail-on-alert: false
|
|
|
|
- name: Push benchmark result
|
|
|
|
if: ${{ github.ref == 'refs/heads/develop' }}
|
|
|
|
run: git push 'https://matrixbot:${{ secrets.DEPLOY_GH_PAGES }}@github.com/matrix-org/matrix-react-sdk.git' gh-pages:gh-pages
|