From 8a6a34674ad31298b9330c80c6a393349ca0d6a1 Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Thu, 28 Nov 2019 19:52:19 +0100 Subject: [PATCH] Add racket-test-core tests to CGC push CI (#2934) Renamed from `Add per-section coretests` since we diverged from initial intention. --- .github/workflows/ci-push.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/ci-push.yml b/.github/workflows/ci-push.yml index 88097b1827..8a8eea268b 100644 --- a/.github/workflows/ci-push.yml +++ b/.github/workflows/ci-push.yml @@ -190,3 +190,36 @@ jobs: name: racketcs-${{ matrix.os }}-x64_git${{ github.sha }} path: ../racketcs-${{ matrix.os }}-x64_git${{ github.sha }}.tar.bz2 +# Tests + test-cgc: + strategy: + fail-fast: false + matrix: + os: [ubuntu-18.04, macos-latest] + cify: [cify, nocify] + + runs-on: ${{ matrix.os }} + + needs: build-racketcgc + + steps: + - uses: actions/checkout@v1 + - uses: actions/download-artifact@master + with: + name: racketcgc-${{ matrix.os }}-${{ matrix.cify }}-x64_git${{ github.sha }} + path: ../ + - name: Untar + working-directory: ../ + run: tar -xvjf racketcgc-${{ matrix.os }}-${{ matrix.cify }}-x64_git${{ github.sha }}.tar.bz2 + - name: Extend PATH with Racket executable + working-directory: ../ + run: echo "::set-env name=PATH::$PWD/racketcgc/bin:$PATH" + - name: Check for Racket + run: racket --version + - name: Install catalog and required packages + 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 + run: raco test -l tests/racket/test