Skip to content

Commit

Permalink
fix: use artifact to store built snap
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Mar 29, 2024
1 parent b007b99 commit 78c71da
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
echo "Working tree dirty at end of job"
exit 1
fi
- name: Save built snap bundle to artifacts
uses: actions/upload-artifact@v4
with:
name: snap-bundle
path: dist/bundle.js

lint:
name: Lint
Expand Down Expand Up @@ -89,13 +94,17 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn --immutable --immutable-cache
- run: yarn build
- name: Download built snap bundle
uses: actions/download-artifact@v4
with:
name: snap-bundle
path: dist/bundle.js
- run: yarn test
- name: Require clean working directory
shell: bash
run: |
if ! git diff --exit-code; then
echo "Working tree dirty at end of job"
exit 1
fi
fi

0 comments on commit 78c71da

Please sign in to comment.