|
46 | 46 | run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/all-ubuntu.sh |
47 | 47 | - name: Run the cross-compilation script |
48 | 48 | run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/cross-compile.sh |
49 | | - - name: Check the documentation |
50 | | - run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer cargo doc |
51 | 49 |
|
52 | 50 | tests-ubuntu-v3: |
53 | 51 | name: Ubuntu tests on v3.x.y of tpm2-tss |
|
68 | 66 | - name: Build the container |
69 | 67 | run: docker build -t fedoracontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-fedora |
70 | 68 | - name: Run the tests |
71 | | - run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi fedoracontainer dbus-run-session -- /tmp/rust-tss-esapi/tss-esapi/tests/all-fedora.sh |
| 69 | + run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi --env USE_FROZEN_LOCKFILE=1 fedoracontainer dbus-run-session -- /tmp/rust-tss-esapi/tss-esapi/tests/all-fedora.sh |
72 | 70 |
|
73 | 71 | tests-fedora-rawhide: |
74 | 72 | name: Fedora rawhide tests |
|
90 | 88 | run: docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu |
91 | 89 | - name: Run the tests |
92 | 90 | run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/valgrind.sh |
| 91 | + |
| 92 | + # Check that the documentation builds as well. |
| 93 | + docs: |
| 94 | + name: Check documentation |
| 95 | + runs-on: ubuntu-latest |
| 96 | + steps: |
| 97 | + - uses: actions/checkout@v2 |
| 98 | + - name: Build the container |
| 99 | + run: docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu |
| 100 | + - name: Check documentation |
| 101 | + run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi -e RUSTDOCFLAGS="-Dwarnings" ubuntucontainer cargo doc --document-private-items --no-deps |
| 102 | + |
| 103 | + # Check that there are no Clippy lint errors. |
| 104 | + clippy: |
| 105 | + name: Check Clippy lints |
| 106 | + runs-on: ubuntu-latest |
| 107 | + steps: |
| 108 | + - uses: actions/checkout@v2 |
| 109 | + - name: Build the container |
| 110 | + run: docker build -t ubuntucontainer tss-esapi/tests/ --file tss-esapi/tests/Dockerfile-ubuntu --target tpm2-tss |
| 111 | + - name: Check Clippy lints MSRV |
| 112 | + run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi --env RUST_TOOLCHAIN_VERSION=1.66.0 ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/lint-checks.sh |
| 113 | + - name: Check Clippy lints latest |
| 114 | + run: docker run -v $(pwd):/tmp/rust-tss-esapi -w /tmp/rust-tss-esapi/tss-esapi ubuntucontainer /tmp/rust-tss-esapi/tss-esapi/tests/lint-checks.sh |
0 commit comments