Skip to content

Commit 2cc3e39

Browse files
committed
Make build and testing more predictable
- Added missing files to .gitignore and added preventive measure to GHA - Prevent accidental use of `npm install` or incorrect versions of yarn
1 parent b8d9e42 commit 2cc3e39

File tree

5 files changed

+148064
-2
lines changed

5 files changed

+148064
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- run: yarn test
2929
env:
3030
DISPLAY: ":99.0"
31+
- run: if [[ -n $(git status --porcelain) ]]; then echo "repo is dirty, probably you missed to add some files to .gitignore"; fi
3132
package:
3233
runs-on: ubuntu-latest
3334
needs: test
@@ -43,6 +44,7 @@ jobs:
4344
- run: vsce package
4445
- run: echo "VSIX_PATH=$(find . -maxdepth 1 -type f -iname "*.vsix" | head -1)" >> $GITHUB_ENV
4546
- run: echo "VSIX_NAME=$(basename $(find . -maxdepth 1 -type f -iname "*.vsix" | head -1))" >> $GITHUB_ENV
47+
- run: if [[ -n $(git status --porcelain) ]]; then echo "repo is dirty, probably you missed to add some files to .gitignore"; fi
4648
- uses: actions/upload-artifact@v4
4749
with:
4850
path: ${{ env.VSIX_PATH }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ node_modules
66
*.vsix
77
.DS_STORE
88
*.log
9-
test-results.xml
9+
test-results.xml
10+
.yarn/install-state.gz
11+
.yarnrc.yml
12+
yarn.lock

0 commit comments

Comments
 (0)