Skip to content

Commit

Permalink
Merge pull request #181 from hasadna/test/ci
Browse files Browse the repository at this point in the history
Put the shell code in separate files
  • Loading branch information
ArkadiK94 authored Nov 10, 2023
2 parents d47de99 + 48dd447 commit 514eb90
Showing 1 changed file with 12 additions and 27 deletions.
39 changes: 12 additions & 27 deletions .github/workflows/clean_tree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,22 @@ jobs:
run: npm install -g yarn
- name: make sure package.lock does not exist
run: rm -f package-lock.json
- name: Check Tree if package-lock.json file was existing and removed
run: |
if [[ -n $(git status -s) ]]; then
echo "ERROR: tree is dirty after removing package-lock.json file"
git status
exit 1
else
echo "Working tree is clean."
fi
- name: Git Check Clean Tree
uses: ArkadiK94/[email protected]
with:
error-reason: "removing package-lock.json file"
- name: Install dependencies
run: yarn
- name: Check Tree after yarn
run: |
if [[ -n $(git status -s) ]]; then
echo "ERROR: tree is dirty after yarn"
git status
exit 1
else
echo "Working tree is clean."
fi
- name: Git Check Clean Tree
uses: ArkadiK94/[email protected]
with:
error-reason: "yarn"
- name: Build
run: yarn build
- name: Check Tree after build
run: |
if [[ -n $(git status -s) ]]; then
echo "ERROR: tree is dirty after yarn build"
git status
exit 1
else
echo "Working tree is clean."
fi
- name: Git Check Clean Tree
uses: ArkadiK94/[email protected]
with:
error-reason: "yarn build"
- name: Clean up
if: always()
run: npm uninstall -g yarn

0 comments on commit 514eb90

Please sign in to comment.