Skip to content

Commit fd79b4d

Browse files
authored
Merge pull request #16 from treeform/tests
Add more github actions tests.
2 parents 02a9969 + bda15f4 commit fd79b4d

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

.github/workflows/build.yml

+11-19
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
1-
name: Run tests
1+
name: Github Actions
22
on: [push, pull_request]
33
jobs:
44
build:
5-
runs-on: ubuntu-latest
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [ubuntu-latest, windows-latest]
69

7-
steps:
8-
- uses: actions/checkout@v1
9-
10-
- name: Cache choosenim
11-
id: cache-choosenim
12-
uses: actions/cache@v1
13-
with:
14-
path: ~/.choosenim
15-
key: ${{ runner.os }}-choosenim-stable
16-
17-
- name: Cache nimble
18-
id: cache-nimble
19-
uses: actions/cache@v1
20-
with:
21-
path: ~/.nimble
22-
key: ${{ runner.os }}-nimble-stable
10+
runs-on: ${{ matrix.os }}
2311

12+
steps:
13+
- uses: actions/checkout@v2
2414
- uses: jiro4989/setup-nim-action@v1
25-
2615
- run: nimble test -y
16+
- run: nimble test --gc:orc -y
17+
- run: nim js tests/all.nim
18+
- run: nim cpp -d:release --gc:arc tests/all.nim

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
Pure nim module with no other dependencies.
44

5+
![Github Actions](https://github.com/treeform/vmath/workflows/Github%20Actions/badge.svg)
6+
57
`nimble install jsony`
68

9+
Check out the [Api Reference](https://nimdocs.com/treeform/jsony/jsony.html).
10+
711
```nim
812
@[1, 2, 3].toJson() -> "[1,2,3]"
913
"[1,2,3]".fromJson(seq[int]) -> @[1, 2, 3]

0 commit comments

Comments
 (0)