Skip to content

Commit fc1ac3d

Browse files
committed
Add GitHub CI jobs
Raise the bar of current repository to meet enterprise-level requirements
1 parent 1dc2991 commit fc1ac3d

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

.github/workflows/push.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
- push
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
racket-variant: ['BC', 'CS']
10+
racket-version: ['8.17', '8.16']
11+
name: Test on ${{ matrix.racket-variant }} Racket
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@master
15+
- name: Install Racket
16+
uses: Bogdanp/[email protected]
17+
with:
18+
architecture: 'x64'
19+
distribution: 'full'
20+
variant: ${{ matrix.racket-variant }}
21+
version: ${{ matrix.racket-version }}
22+
- name: Install Package and its Dependencies
23+
run: raco pkg install --auto --batch
24+
- name: Run Tests
25+
run: raco test -t .

README.org

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@
1717
#+end_quote
1818

1919
向以括号为画笔的Lisp程序员举杯,干杯!
20-
21-
20+
* 安装依赖
21+
#+begin_src shell
22+
raco pkg install --auto --batch # 类似 JavaScript 的 npm install
23+
#+end_src

info.rkt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#lang info
2+
3+
;; Basic package information
4+
(define collection "ramsay-sicp-solutions")
5+
(define version "1.0")
6+
(define pkg-desc "Ramsay's solutions and notes for SICP exercises.")
7+
8+
;; Dependencies - this is like requirements.txt
9+
(define deps '("base" ; Always needed
10+
"rackunit-lib" ; For testing
11+
"sicp"
12+
))
13+
14+
;; Build dependencies (only needed during development)
15+
(define build-deps '("scribble-lib" ; For documentation
16+
"racket-doc" ; For documentation
17+
"rackunit-lib" ; For testing
18+
))
19+
20+
;; Test dependencies
21+
(define test-deps '("rackunit-lib"))
22+
23+
;; Which files to include when installing
24+
(define pkg-authors '("Ramsay Leung([email protected]"))
25+

0 commit comments

Comments
 (0)