mirror of https://github.com/status-im/NimYAML.git
add ci
This commit is contained in:
parent
10cc4d3026
commit
d333d20ffb
|
@ -0,0 +1,49 @@
|
|||
name: Test nimYAML
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
- macOS-latest
|
||||
nim-version:
|
||||
- stable
|
||||
- devel
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache choosenim
|
||||
id: cache-choosenim
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.choosenim
|
||||
key: ${{ runner.os }}-choosenim-${{ matrix.nim-version}}
|
||||
|
||||
- name: Cache nimble
|
||||
id: cache-nimble
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.nimble
|
||||
key: ${{ runner.os }}-nimble-${{ matrix.nim-version}}-${{ hashFiles('prologue.nimble') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nimble-${{ matrix.nim-version}}-
|
||||
- name: Setup nim
|
||||
uses: jiro4989/setup-nim-action@v1
|
||||
with:
|
||||
nim-version: ${{ matrix.nim-version }}
|
||||
|
||||
- name: Install Packages
|
||||
run: nimble install -y
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
nim lexerTests
|
||||
nim parserTests
|
||||
nim jsonTests
|
||||
nim domTests
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Features:
|
||||
|
||||
* Compiles with --gc:arm and --gc:orm
|
||||
* Compiles with --gc:arc and --gc:orc
|
||||
|
||||
Bugfixes:
|
||||
|
||||
|
|
Loading…
Reference in New Issue