name: Continuous Integration
on: [push, pull_request]
jobs:
formatting:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check formatting
run: cargo fmt --all -- --check
all:
name: Use Docker to execute the test script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the container
run: docker build -t tss2.0 tests/
- name: Run the container
run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi tss2.0 /tmp/rust-tss-esapi/tests/all.sh