WIP: testsuite module #71
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: Main flow | |
env: | |
TARGET: x86_64-linux | |
DC: dmd | |
NNG_WITH_MBEDTLS: OFF | |
NNG_DEBUG: OFF | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
test: | |
name: Run tests | |
strategy: | |
matrix: | |
dc: [dmd-latest] | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install D compiler | |
uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: ${{ matrix.dc }} | |
- name: install make etc | |
run: | |
sudo apt-get install build-essential uwsc | |
- name: build | |
run: | |
make all | |
- name: run test | |
run: | |
make test | |
- name: report test | |
run: | | |
cat logs/runtest.log |grep '^#TEST' >> $GITHUB_STEP_SUMMARY | |
- name: post run | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: runlogs | |
path: logs/ | |
handle_errors: | |
if: failure() | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- name: get logs | |
uses: actions/download-artifact@v4 | |
with: | |
name: runlogs | |
path: logs/ | |
- name: lsit | |
run: ls -alsR /home/runner/work/nng/nng/ | |
- name: add logs | |
run: | | |
cat logs/runtest.log >> $GITHUB_STEP_SUMMARY | |