Skip to content

Build(deps): bump actions/cache from 4.0.1 to 4.0.2 #377

Build(deps): bump actions/cache from 4.0.1 to 4.0.2

Build(deps): bump actions/cache from 4.0.1 to 4.0.2 #377

Workflow file for this run

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@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Cache nimble
id: cache-nimble
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
- uses: jiro4989/setup-nim-action@8674364c41ed85fc5b9c2bb5c2356747f2acb903
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@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: jiro4989/setup-nim-action@8674364c41ed85fc5b9c2bb5c2356747f2acb903
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