-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove bower.json * update karma config * Add npm build script * (actions) add GH actions * (travis) remove travis * build; add package-lock.json * (README) update CI badge
- Loading branch information
1 parent
63739bd
commit 6f55c7c
Showing
8 changed files
with
10,192 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches-ignore: | ||
- develop | ||
|
||
jobs: | ||
ci: | ||
name: ${{ matrix.node_version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node_version: [14, 16] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
- name: Install grunt-cli | ||
run: npm install -g grunt-cli | ||
- name: Install | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
|
||
- name: Build Check | ||
run: | | ||
echo -e "\e[1m\e[35mChecking build folder is up-to-date with library\e[0m" | ||
changed_build_files=$(git -C "$(git rev-parse --show-toplevel)" diff --name-only HEAD -- build) | ||
if [ -n "$changed_build_files" ] | ||
then | ||
echo -e "\e[1m\e[31mBuild folder is out-of-sync with library. Build library, npm run build, and (ammend) commit\e[0m" | ||
exit 1 | ||
else | ||
echo -e "\e[1m\e[32mBuild folder is up-to-date with library\e[0m" | ||
fi |
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.