Skip to content

Commit

Permalink
chore: Update test snapshots in dictionary workflow (#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Dec 25, 2022
1 parent 1eee3a9 commit 7662815
Showing 1 changed file with 4 additions and 23 deletions.
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

0 comments on commit 7662815

Please sign in to comment.