From bf5cd14c7b53299c0d97b087871db9d211411e94 Mon Sep 17 00:00:00 2001 From: Bogdan Popa Date: Fri, 30 Oct 2020 20:12:58 +0200 Subject: [PATCH] ci: use setup-racket and a build matrix --- .github/workflows/push.yml | 34 +++++++++++++++++++++++++++------- ci/build.sh | 8 -------- 2 files changed, 27 insertions(+), 15 deletions(-) delete mode 100755 ci/build.sh diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 798270b..50b8da0 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,11 +1,31 @@ -on: push -name: main +on: [push, pull_request] +name: CI/CD jobs: build: - runs-on: ubuntu-latest + name: "Build on ${{ matrix.os }}, ${{ matrix.version }} (${{ matrix.variant }})" + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + variant: ["CS", "regular"] + version: ["7.7", "7.8", "current"] + os: ["macos-latest", "ubuntu-latest", "windows-latest"] + steps: - - uses: actions/checkout@master - - name: Build and Test - uses: docker://jackfirth/racket:7.3-full + - name: Checkout + uses: actions/checkout@master + + - name: Install Racket + uses: Bogdanp/setup-racket@v0.10 with: - entrypoint: /github/workspace/ci/build.sh + architecture: x64 + distribution: full + variant: ${{ matrix.variant }} + version: ${{ matrix.version }} + + - name: Install pkg and deps + run: raco pkg install --batch --auto sass/ + + - name: Run tests + run: raco test -j 4 -l sass diff --git a/ci/build.sh b/ci/build.sh deleted file mode 100755 index 9177b22..0000000 --- a/ci/build.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -pushd /github/workspace -raco pkg install --auto --batch sass/ -raco test -j 4 sass/ -popd