From 153e417862a98ad2f898a674bc6be358b58d32c6 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Fri, 20 Nov 2020 10:32:49 +0800 Subject: [PATCH] generate GitHub Action file for `raco pkg new` --- racket/collects/pkg/private/new.rkt | 77 ++++++++++------------------- 1 file changed, 26 insertions(+), 51 deletions(-) diff --git a/racket/collects/pkg/private/new.rkt b/racket/collects/pkg/private/new.rkt index aecef2c5ff..9549f03a81 100644 --- a/racket/collects/pkg/private/new.rkt +++ b/racket/collects/pkg/private/new.rkt @@ -124,58 +124,33 @@ compiled/ EOS ))) - ;; .travis.yml - (with-output-to-file ".travis.yml" + ;; .github/workflows/ci.yml + (make-directory ".github") + (make-directory ".github/workflows") + (with-output-to-file ".github/workflows/ci.yml" (lambda () (expand/display #<> - -before_script: - -# Here supply steps such as raco make, raco test, etc. You can run -# `raco pkg install --deps search-auto` to install any required -# packages without it getting stuck on a confirmation prompt. -script: - - raco test -x -p <> - -after_success: - - raco setup --check-pkg-deps --pkgs <> - - raco pkg install --auto cover cover-coveralls - - raco cover -b -f coveralls -d $TRAVIS_BUILD_DIR/coverage . +on: [push, pull_request] +name: CI +jobs: + build: + name: "Build on Racket '${{ matrix.racket-version }}' (${{ matrix.racket-variant }})" + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + racket-version: ["7.9", "current"] + racket-variant: ["regular", "CS"] + steps: + - uses: actions/checkout@v2 + - uses: Bogdanp/setup-racket@v0.10 + with: + architecture: x64 + distribution: full + variant: ${{ matrix.racket-variant }} + version: ${{ matrix.racket-version }} + - run: | + raco pkg install --auto --name <> + raco test -x -p <> EOS )))