Skip to content

Commit

Permalink
Merge pull request #26 from guzba/master
Browse files Browse the repository at this point in the history
updated github workflow
  • Loading branch information
treeform authored Oct 11, 2021
2 parents 9fe6179 + 09ca2a8 commit c3c4a40
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
name: Run tests
name: Github Actions
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v1

- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-stable

- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-stable
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: jiro4989/setup-nim-action@v1

- run: nimble test -y
- run: nimble test --gc:orc -y
7 changes: 1 addition & 6 deletions tests/test_hexprint.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import flatty/binny, flatty/hexprint, osproc, streams
import flatty/binny, flatty/hexprint, streams

var s = newFileStream("tests/test_hexprint-output.txt", fmWrite)

Expand Down Expand Up @@ -28,8 +28,3 @@ block:
s.writeLine hexPrint(bin)

s.close()

let (outp, _) = execCmdEx("git diff tests/test_hexprint-output.txt")
if len(outp) != 0:
echo outp
quit("Output does not match")

0 comments on commit c3c4a40

Please sign in to comment.