-
Notifications
You must be signed in to change notification settings - Fork 447
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 #242 from leapmotion/update-2020
[FEAT] Prune and Upgrade Dependencies; Add Github Actions
- Loading branch information
Showing
46 changed files
with
33,955 additions
and
39,048 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,50 @@ | ||
name: leapjs - Build Library and Run Unit Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build Library and Run Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Checkout | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Install Node | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
|
||
# Install Dependencies | ||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
# Build and Run Tests | ||
- name: Build Library and Run Tests | ||
run: ./node_modules/.bin/grunt test | ||
|
||
# Commit All Build Artifacts | ||
- name: Commit Build Artifacts | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
set +e | ||
git add * | ||
git diff-index --quiet HEAD || git commit -m "Build Leap.js" | ||
# Push Build Artifacts | ||
- name: Push Changes to branch | ||
id: push-build | ||
uses: ad-m/github-push-action@master | ||
continue-on-error: true | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} | ||
|
||
# Reenable Errors | ||
- name: Clean Up | ||
if: steps.push-build.outcome == 'success' && steps.push-build.conclusion == 'success' | ||
run: set -e |
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 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 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.
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
Oops, something went wrong.