Tests #743
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '55 5 * * *' | |
env: | |
TESTMO_URL: ${{ vars.TESTMO_URL }} | |
TESTMO_PROJECT_ID: ${{ vars.TESTMO_PROJECT_ID }} | |
TESTMO_TOKEN: ${{ secrets.TESTMO_TOKEN }} | |
jobs: | |
test-init: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
- name: Echo version to summary | |
run: | | |
VERSION="$(docker run --rm ghcr.io/ydb-platform/local-ydb:trunk /ydbd -V)" | |
cat <<EOF >> $GITHUB_STEP_SUMMARY | |
## YDB version in details: | |
\`\`\` | |
$VERSION | |
\`\`\` | |
EOF | |
test: | |
needs: [test-init] | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
tests: | |
# - ./apps/urlsh | |
- ./apps/go/url-shortener | |
- ./languages/go/libpq | |
- ./languages/python/psycopg2 | |
# - ./languages/java/jdbc | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
- run: scripts/install-tools.bash | |
- run: bash ${{ matrix.tests }}/run-test.bash | |
- run: | | |
echo "Postprocessing results" | |
sudo chmod -R a+rw ${{ matrix.tests }}/test-result | |
./scripts/post-process-report.bash "${{ matrix.tests }}" | |
echo "Remove raw results" | |
rm -rf /test-result/raw | |
- uses: actions/upload-artifact@v3 | |
name: "upload test result artifacts" | |
if: always() | |
with: | |
name: test-result | |
path: "**/test-result/**" | |
test-complete: | |
runs-on: ubuntu-20.04 | |
needs: [test-init, test] | |
# if: always() | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
- name: Download a test-results | |
uses: actions/download-artifact@v3 | |
with: | |
name: test-result | |
- run: | | |
scripts/install-tools.bash | |
scripts/upload-test-result.bash | |
env: | |
TESTMO_RUN_ID: ${{ needs.test-init.outputs.testmo-run-id }} |