NimYAML/.github/workflows/action.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

2021-07-20 15:06:28 +00:00
name: Test nimYAML
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
2021-07-20 15:18:53 +00:00
- windows-latest
2021-07-20 15:06:28 +00:00
- macOS-latest
nim-version:
- stable
2021-07-20 15:21:12 +00:00
# - devel
2021-07-20 15:06:28 +00:00
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 jsonTests
nim domTests
2021-07-20 15:21:12 +00:00
nim serializationTests