-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from hasadna/test/ci
Put the shell code in separate files
- Loading branch information
Showing
1 changed file
with
12 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |