58 lines
1.3 KiB
YAML
Raw Normal View History

2021-07-20 23:06:28 +08:00
name: Test nimYAML
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
2023-11-07 22:54:43 +01:00
fail-fast: false # so that problems in nim devel don't stop other tests
2021-07-20 23:06:28 +08:00
matrix:
os:
- ubuntu-latest
2021-07-20 23:18:53 +08:00
- windows-latest
2021-07-20 23:06:28 +08:00
- macOS-latest
nim-version:
- '2.0.x'
2021-07-20 23:06:28 +08:00
- stable
2021-09-03 16:04:51 +08:00
- devel
2021-07-20 23:06:28 +08:00
steps:
- name: Checkout
uses: actions/checkout@v2
2021-07-21 19:08:02 +08:00
with:
submodules: true
2021-07-20 23:06:28 +08:00
- 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
2021-07-21 19:08:02 +08:00
key: ${{ runner.os }}-nimble-${{ matrix.nim-version}}-${{ hashFiles('yaml.nimble') }}
2021-07-20 23:06:28 +08:00
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
2021-07-21 19:08:02 +08:00
nim parserTests
2021-07-20 23:06:28 +08:00
nim jsonTests
nim domTests
2023-08-30 22:48:58 +02:00
nim nativeTests
nim quickstartTests
nim hintsTests
nim presenterTests