NimYAML/.github/workflows/action.yml

58 lines
1.3 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:
2023-11-07 21:54:43 +00:00
fail-fast: false # so that problems in nim devel don't stop other tests
2021-07-20 15:06:28 +00:00
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:
- '2.0.x'
2021-07-20 15:06:28 +00:00
- stable
2021-09-03 08:04:51 +00:00
- devel
2021-07-20 15:06:28 +00:00
steps:
- name: Checkout
uses: actions/checkout@v2
2021-07-21 11:08:02 +00:00
with:
submodules: true
2021-07-20 15:06:28 +00: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 11:08:02 +00:00
key: ${{ runner.os }}-nimble-${{ matrix.nim-version}}-${{ hashFiles('yaml.nimble') }}
2021-07-20 15:06:28 +00: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 11:08:02 +00:00
nim parserTests
2021-07-20 15:06:28 +00:00
nim jsonTests
nim domTests
2023-08-30 20:48:58 +00:00
nim nativeTests
nim quickstartTests
nim hintsTests
nim presenterTests