ci(dependabot): change to monthly interval #410
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: CI | |
on: | |
push: | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
jobs: | |
job1: | |
name: Nim Tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Cache nimble | |
id: cache-nimble | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }} | |
- uses: jiro4989/setup-nim-action@85568110458a7e3883fa67aa3c654490c6afaa5b | |
with: | |
nim-version: '1.6.6' | |
- name: Compile and run tests with `nimble test` | |
run: "nimble test -y" | |
job2: | |
name: Smoke test | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- uses: jiro4989/setup-nim-action@85568110458a7e3883fa67aa3c654490c6afaa5b | |
with: | |
nim-version: '1.6.6' | |
- name: Cache nimble | |
id: cache-nimble | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }} | |
- name: "Install nimble dependencies" | |
if: steps.cache-nimble.outputs.cache-hit != 'true' | |
run: "nimble install -y -d" | |
- name: "Compile representer" | |
run: "nimble c -d:release src/representer" | |
- name: "Make representation of `two-fer`" | |
run: "bin/run.sh two-fer ${PWD}/tests/cases/example-two-fer/ ${PWD}/tests/cases/example-two-fer/" | |
- name: "Check diffs" | |
run: | | |
diff -y tests/cases/example-two-fer/mapping.json tests/cases/example-two-fer/expected/mapping.json | |
diff -y tests/cases/example-two-fer/representation.txt tests/cases/example-two-fer/expected/representation.txt |