Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
Add a check to ensure the dist/ folder is not ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Royer committed Feb 19, 2020
1 parent 3e7b40d commit 12199e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/nodejs.yml
Expand Up @@ -11,6 +11,16 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Check that dist folder is NOT gitignored
run: |
if [[ $(grep -c dist .gitignore) -eq 0 ]]
then
echo "dist/ is not gitignored"
exit 0
else
echo "dist/ is gitignored, we need to fail"
exit 1
fi
- name: yarn install and test
run: |
yarn install
Expand Down

0 comments on commit 12199e1

Please sign in to comment.