Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update test snapshots in dictionary workflow #3934

Merged
merged 4 commits into from Dec 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 4 additions & 23 deletions .github/workflows/update-dictionaries.yml
Expand Up @@ -217,7 +217,6 @@ jobs:
if: ${{ needs.check-dictionaries.outputs.patch }}
runs-on: ubuntu-latest
needs:
- build
- calc-ref
- check-dictionaries

Expand All @@ -226,11 +225,6 @@ jobs:
PATCH: ${{ needs.check-dictionaries.outputs.patch }}

steps:
- name: Build Results
run: |
echo "key: ${{ needs.build.outputs.key }}"
echo "path: ${{ needs.build.outputs.path }}"

- name: Checkout
uses: actions/checkout@v3
with:
Expand All @@ -251,38 +245,25 @@ jobs:

- run: pnpm -v

- name: Cache Build
id: step-cache-build
uses: actions/cache@v3
with:
key: ${{ needs.build.outputs.key }}
path: ${{ needs.build.outputs.path }}

- name: Cached Results
- name: Install and Build
run: |
echo Build Cache: ${{ steps.step-cache-build.outputs.cache-hit && 'Hit' || 'Miss' }}

- name: Install
run: pnpm i
pnpm i
pnpm run build

- name: Has pnpm has failed?
if: ${{ failure() }}
run: |
ls -alF /home/runner/.pnpm/_logs/*.log
cat /home/runner/.pnpm/_logs/*.log

- name: Check Build
if: ${{ !steps.step-cache-build.outputs.cache-hit }}
run: exit 1

- name: Update update-snapshots-only
run: |
pnpm run test:update-snapshots

- name: Store Update Snapshot Diff
run: |
mkdir temp || echo temp already exists
git diff integration-tests/config integration-tests/repositories integration-tests/snapshots > temp/update_snapshot.diff
git diff packages/cspell packages/cspell-lib > temp/update_snapshot.diff
- name: store diff
uses: actions/upload-artifact@v3
with:
Expand Down