-
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.
latest scip cli and diagnostic snapshot generation
- Loading branch information
1 parent
14c9b2a
commit 22e3789
Showing
1 changed file
with
5 additions
and
38 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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- 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 | ||
bash -c 'curl -L "https://github.com/sourcegraph/scip/releases/download/v0.3.3/scip-linux-amd64.tar.gz"' | tar xzf - scip | ||
./scip --version | ||
- uses: dart-lang/setup-dart@v1 | ||
|
@@ -28,50 +28,17 @@ jobs: | |
run: dart pub get | ||
working-directory: ./snapshots/input/basic-project | ||
|
||
- name: dart pub get relationships-project directory | ||
- name: dart pub get diagnostics directory | ||
run: dart pub get | ||
working-directory: ./snapshots/input/relationships-project | ||
working-directory: ./snapshots/input/diagnostics | ||
|
||
- name: Snapshots Diff Check | ||
run: | | ||
dart run scip_dart ./snapshots/input/basic-project | ||
./scip snapshot --to ./snapshots/output/basic-project | ||
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 | ||
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 | ||
dart run scip_dart ./snapshots/input/diagnostics | ||
./scip snapshot --to ./snapshots/output/diagnostcis | ||
if [[ -z "$(git status --porcelain ./snapshots/output)" ]]; | ||
then | ||
|