-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from Workiva/added_diagnostics_snapshot_test
Diagnostic bug fixes (and snapshot tests)
- Loading branch information
Showing
10 changed files
with
340 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,43 @@ jobs: | |
echo "No changes to snapshot files" | ||
else | ||
echo | ||
echo "Snapshot diff detected differences, run 'make run snap' to re-generate snapshots" | ||
echo "Snapshot diff detected differences, run 'make gen-snaps' to re-generate snapshots" | ||
git status --short ./snapshots/output | ||
echo | ||
exit 1 | ||
fi | ||
snapshots-diagnostics: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install scip cli | ||
run: | | ||
bash -c 'curl -L "https://github.com/sourcegraph/scip/releases/download/v0.3.0/scip-linux-amd64.tar.gz"' | tar xzf - scip | ||
./scip --version | ||
- uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: 2.18.7 | ||
- name: pub get scip-dart package | ||
run: dart pub get | ||
|
||
- name: pub get diagnostics directory | ||
run: dart pub get | ||
working-directory: ./snapshots/input/diagnostics | ||
|
||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
|
||
- name: Snapshots Diff Check | ||
run: | | ||
make gen-snap_diagnostics | ||
if [[ -z "$(git status --porcelain ./snapshots/output)" ]]; | ||
then | ||
echo "No changes to snapshot files" | ||
else | ||
echo | ||
echo "Snapshot diff detected differences, run 'make gen-snaps' to re-generate snapshots" | ||
git status --short ./snapshots/output | ||
echo | ||
exit 1 | ||
|
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
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
Oops, something went wrong.