Skip to content

Commit

Permalink
feat: run tests on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
macisamuele committed May 11, 2020
1 parent 40f138c commit c84accb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Continuous integration

on: [pull_request]
on: [push, pull_request]

jobs:

Expand All @@ -27,6 +27,28 @@ jobs:
with:
command: check

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: find tests/
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Start background server # Used for the integration tests

This comment has been minimized.

Copy link
@Stranger6667

Stranger6667 May 11, 2020

@macisamuele

Don't you mind if I cherry-pick this commit back to my lib? Or if you could create a PR it will be awesome! :) It is exactly what I missed in Stranger6667#35

This comment has been minimized.

Copy link
@macisamuele

macisamuele May 13, 2020

Author Owner

Please go ahead. It was the objective of the PR ;)

This comment has been minimized.

Copy link
@Stranger6667

Stranger6667 May 14, 2020

Thank you, Samuele!
Very much appreciated :)

run: >
docker build --file tests/Dockerfile --tag flask_runner tests &&
docker run --name flask_runner --volume $(pwd)/tests/suite:/suite --detach flask_runner
- uses: actions-rs/cargo@v1
with:
command: test

fmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3.8-alpine

RUN pip install flask

ENTRYPOINT ["/suite/bin/jsonschema_suite"]

0 comments on commit c84accb

Please sign in to comment.