Skip to content

Build(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#103) #379

Build(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#103)

Build(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#103) #379

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@9bb56186c3b09b4f86b1c65136769dd318469633
- name: Cache nimble
id: cache-nimble
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319
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@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: jiro4989/setup-nim-action@8674364c41ed85fc5b9c2bb5c2356747f2acb903
with:
nim-version: '1.6.6'
- name: Cache nimble
id: cache-nimble
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319
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