-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
18,077 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,6 +155,47 @@ jobs: | |
status: "success" | ||
url: "${{ steps.s3.outputs.URL }}" | ||
|
||
docdiff: | ||
runs-on: ubuntu-latest | ||
needs: env | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions-rs/[email protected] | ||
id: toolchain | ||
with: | ||
# pin to a specific version so we don't get breakage in the generated html | ||
toolchain: ${{ needs.env.outputs.msrv }} | ||
profile: minimal | ||
override: true | ||
|
||
- uses: camshaft/rust-cache@v1 | ||
|
||
- name: Clean up cache | ||
working-directory: common/docdiff | ||
run: rm -f target/release/docdiff | ||
|
||
- name: Cache docdiff | ||
uses: actions/[email protected] | ||
continue-on-error: true | ||
with: | ||
path: target/release/docdiff | ||
key: ${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('common/docdiff/**') }} | ||
|
||
- name: Build docdiff | ||
working-directory: common/docdiff | ||
run: | | ||
if [ ! -f ../../target/release/docdiff ]; then | ||
mkdir -p ../../target/release | ||
cargo build --release | ||
cp target/release/docdiff ../../target/release/docdiff | ||
fi | ||
- name: Run docdiff | ||
run: ./target/release/docdiff s2n-quic | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
needs: env | ||
|
@@ -276,6 +317,7 @@ jobs: | |
- uses: camshaft/rust-cache@v1 | ||
|
||
- name: Clean up cache | ||
working-directory: common/duvet | ||
run: rm -f target/release/duvet | ||
|
||
- name: Cache duvet | ||
|
@@ -286,7 +328,13 @@ jobs: | |
key: ${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ github.job }}-duvet-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('common/duvet/**') }} | ||
|
||
- name: Build duvet | ||
run: test -f target/release/duvet || cargo build --bin duvet --release | ||
working-directory: common/duvet | ||
run: | | ||
if [ ! -f ../../target/release/duvet ]; then | ||
mkdir -p ../../target/release | ||
cargo build --release | ||
cp target/release/duvet ../../target/release/duvet | ||
fi | ||
- name: Run duvet | ||
run: ./scripts/compliance ${{ github.sha }} | ||
|
@@ -498,6 +546,12 @@ jobs: | |
|
||
- uses: camshaft/rust-cache@v1 | ||
|
||
- name: Remove api snapshots | ||
run: | | ||
rm quic/*/api.snap | ||
git add . | ||
git commit -m 'remove api.snap' | ||
- name: Run cargo insta test | ||
run: | | ||
cargo insta test --delete-unreferenced-snapshots | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[workspace] | ||
members = [ | ||
"common/duvet", | ||
"common/s2n-*", | ||
"quic/s2n-*", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "docdiff" | ||
version = "0.1.0" | ||
authors = ["AWS s2n"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
publish = false | ||
|
||
[dependencies] | ||
anyhow = "1" | ||
duct = "0.13" | ||
glob = "0.3" | ||
insta = "1" | ||
once_cell = "1" | ||
rayon = "1" | ||
scraper = "0.12" | ||
selectors = "0.22" | ||
structopt = "0.3" | ||
|
||
[workspace] | ||
members = ["."] |
Oops, something went wrong.