Fix action #6
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: Nim Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nim-version: ['2.0.14', '2.2.0'] # Test against multiple Nim versions | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Nim environment | |
uses: jiro4989/setup-nim-action@v2.2.2 | |
with: | |
nim-version: ${{ matrix.nim-version }} | |
- name: Install dependencies | |
run: | | |
nimble install -y | |
nimble refresh | |
- name: Run tests | |
run: | | |
nimble test -y | |
#- name: Build project | |
# run: | | |
# nimble build -y | |
- name: Cache nimble packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble-v1 |