Add job to test racket CGC on Linux and macOS (#2918)

This commit is contained in:
Paulo Matos 2019-11-26 15:18:16 +01:00 committed by GitHub
parent 256f57bfd8
commit 568433c1a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 test
run: raco test -l tests/racket/test