From 2836a6027eef0ae67b17ba28faee6c66f97e6391 Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Mon, 2 Dec 2019 00:14:21 +0100 Subject: [PATCH] More complete set of tests in Actions (#2944) This adds tests - 1 set of tests per step - for cgc, 3m and cs on Linux and MacOS. --- .github/workflows/ci-push.yml | 115 +++++++++++++++++++++++++++++++--- 1 file changed, 107 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-push.yml b/.github/workflows/ci-push.yml index 312bd1c591..b4fe48df5d 100644 --- a/.github/workflows/ci-push.yml +++ b/.github/workflows/ci-push.yml @@ -220,13 +220,46 @@ jobs: run: echo "::set-env name=PATH::$PWD/racketcgc/bin:$PATH" - name: Check for Racket run: racket --version - - name: Install catalog and required packages + - name: Install catalog run: | racket -l- pkg/dirs-catalog --immediate $PWD/rktcat $PWD/pkgs/ raco pkg config --set catalogs $PWD/rktcat/ https://pkgs.racket-lang.org https://planet-compats.racket-lang.org - raco pkg install --auto racket-test - - name: Run tests + - name: Install racket-test dependency + run: raco pkg install --auto racket-test + - name: Run tests/racket/test run: raco test -l tests/racket/test + - name: Run tests/racket/contract/all + run: racket -l tests/racket/contract/all + - name: Run tests/json/json + run: raco test -l tests/json/json + - name: Run tests/file/main + run: raco test -l tests/file/main + - name: Run tests/net/head + run: raco test -l tests/net/head + - name: Run tests/net/uri-codec + run: raco test -l tests/net/uri-codec + - name: Run tests/net/url + run: raco test -l tests/net/url + - name: Run tests/net/url-port + run: raco test -l tests/net/url-port + - name: Run tests/net/encoders + run: raco test -l tests/net/encoders + - name: Run tests/openssl/basic + run: raco test -l tests/openssl/basic + - name: Run tests/openssl/https + run: raco test -l tests/openssl/https + - name: Run tests/match/main + run: raco test -l tests/match/main + - name: Run tests/zo-path + run: raco test -l tests/zo-path + - name: Run tests/xml + run: raco test -c tests/xml + - name: Run tests/stxparse + run: raco test -c tests/stxparse + - name: Install db tests dependency + run: raco pkg install --auto db-test + - name: Run db tests + run: raco test -l tests/db/all-tests test-3m: strategy: @@ -257,10 +290,43 @@ jobs: run: | racket -l- pkg/dirs-catalog --immediate $PWD/rktcat $PWD/pkgs/ raco pkg config --set catalogs $PWD/rktcat/ https://pkgs.racket-lang.org https://planet-compats.racket-lang.org - raco pkg install --auto racket-test - - name: Run tests + - name: Install racket-test dependency + run: raco pkg install --auto racket-test + - name: Run tests/racket/test run: raco test -l tests/racket/test - + - name: Run tests/racket/contract/all + run: racket -l tests/racket/contract/all + - name: Run tests/json/json + run: raco test -l tests/json/json + - name: Run tests/file/main + run: raco test -l tests/file/main + - name: Run tests/net/head + run: raco test -l tests/net/head + - name: Run tests/net/uri-codec + run: raco test -l tests/net/uri-codec + - name: Run tests/net/url + run: raco test -l tests/net/url + - name: Run tests/net/url-port + run: raco test -l tests/net/url-port + - name: Run tests/net/encoders + run: raco test -l tests/net/encoders + - name: Run tests/openssl/basic + run: raco test -l tests/openssl/basic + - name: Run tests/openssl/https + run: raco test -l tests/openssl/https + - name: Run tests/match/main + run: raco test -l tests/match/main + - name: Run tests/zo-path + run: raco test -l tests/zo-path + - name: Run tests/xml + run: raco test -c tests/xml + - name: Run tests/stxparse + run: raco test -c tests/stxparse + - name: Install db tests dependency + run: raco pkg install --auto db-test + - name: Run db tests + run: raco test -l tests/db/all-tests + test-cs: strategy: fail-fast: false @@ -289,6 +355,39 @@ jobs: run: | racket -l- pkg/dirs-catalog --immediate $PWD/rktcat $PWD/pkgs/ raco pkg config --set catalogs $PWD/rktcat/ https://pkgs.racket-lang.org https://planet-compats.racket-lang.org - raco pkg install --auto racket-test - - name: Run tests + - name: Install racket-test dependency + run: raco pkg install --auto racket-test + - name: Run tests/racket/test run: raco test -l tests/racket/test + - name: Run tests/racket/contract/all + run: racket -l tests/racket/contract/all + - name: Run tests/json/json + run: raco test -l tests/json/json + - name: Run tests/file/main + run: raco test -l tests/file/main + - name: Run tests/net/head + run: raco test -l tests/net/head + - name: Run tests/net/uri-codec + run: raco test -l tests/net/uri-codec + - name: Run tests/net/url + run: raco test -l tests/net/url + - name: Run tests/net/url-port + run: raco test -l tests/net/url-port + - name: Run tests/net/encoders + run: raco test -l tests/net/encoders + - name: Run tests/openssl/basic + run: raco test -l tests/openssl/basic + - name: Run tests/openssl/https + run: raco test -l tests/openssl/https + - name: Run tests/match/main + run: raco test -l tests/match/main + - name: Run tests/zo-path + run: raco test -l tests/zo-path + - name: Run tests/xml + run: raco test -c tests/xml + - name: Run tests/stxparse + run: raco test -c tests/stxparse + - name: Install db tests dependency + run: raco pkg install --auto db-test + - name: Run db tests + run: raco test -l tests/db/all-tests