fix previous commit #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test nimYAML | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false # so that problems in nim devel don't stop other tests | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macOS-latest | |
nim-version: | |
- '2.0.x' | |
- stable | |
- devel | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- 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('yaml.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 | |
nim nativeTests | |
nim quickstartTests | |
nim hintsTests | |
nim presenterTests |