Fixes nim check misleading errors in nimble files due to nimscriptapi… #1220
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
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 19 * * *" | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
# - windows-latest | |
# - macos-latest | |
- ubuntu-latest | |
name: ${{ matrix.os }} - ${{ matrix.nimversion }} | |
runs-on: ${{ matrix.os }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Nimble | |
uses: nim-lang/setup-nimble-action@v1 | |
with: | |
nimble-version: "latest" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Restore nimble dependencies from cache | |
id: nimble_deps | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nimble/ | |
key: ${{ matrix.os }}-${{ env.cache_nonce }} | |
- name: Nimble Install | |
shell: bash | |
run: | | |
nimble -y install -l | |
- name: Nimble Test | |
shell: bash | |
run: | | |
nimble test |