0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Revert "Added metrics for test runs"

This reverts commit e9afa6f40f.

Reverting because the TailScale step sometimes crashes the build
This commit is contained in:
Sam Lord 2021-11-01 13:31:43 +00:00
parent 30bc2f5090
commit b79870d48c

View file

@ -105,9 +105,6 @@ jobs:
mysql root password: 'root' mysql root password: 'root'
- run: yarn - run: yarn
- run: date +%s > ${{ runner.temp }}/startTime # Get start time for test suite
- run: yarn test:e2e - run: yarn test:e2e
env: env:
database__connection__filename: /dev/shm/ghost-test.db database__connection__filename: /dev/shm/ghost-test.db
@ -119,38 +116,6 @@ jobs:
env: env:
database__connection__filename: /dev/shm/ghost-test.db database__connection__filename: /dev/shm/ghost-test.db
# Get runtime in seconds for test suite
- run: |
startTime="$(cat ${{ runner.temp }}/startTime)"
endTime="$(date +%s)"
echo "test_time=$(($endTime-$startTime))" >> $GITHUB_ENV
- name: Tailscale Action
uses: tailscale/github-action@v1
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
# Report time taken to metrics service
- uses: sam-lord/action-trigger-metric@main
with:
metricName: 'test-time'
metricValue: ${{ env.test_time }}
configuration: |
{
"metrics": {
"transports": ["elasticsearch"],
"metadata": {
"database": "${{ matrix.env.DB }}",
"node": "${{ matrix.node }}"
}
},
"elasticsearch": {
"host": "${{ secrets.ELASTICSEARCH_HOST }}",
"username": "${{ secrets.ELASTICSEARCH_USERNAME }}",
"password": "${{ secrets.ELASTICSEARCH_PASSWORD }}"
}
}
- name: Unit test coverage - name: Unit test coverage
run: yarn cov:unit run: yarn cov:unit
- uses: codecov/codecov-action@v2 - uses: codecov/codecov-action@v2