|
@@ -0,0 +1,20 @@
|
|
|
|
+name: Build and test application on push to remote
|
|
|
|
+
|
|
|
|
+on: [push]
|
|
|
|
+
|
|
|
|
+jobs:
|
|
|
|
+ build:
|
|
|
|
+ runs-on: ubuntu-latest
|
|
|
|
+ steps:
|
|
|
|
+ - uses: actions/checkout@v1
|
|
|
|
+ - uses: actions/setup-node@v1
|
|
|
|
+ with:
|
|
|
|
+ node-version: 12
|
|
|
|
+ - run: yarn install
|
|
|
|
+ - run: yarn build
|
|
|
|
+ - run: yarn test
|
|
|
|
+
|
|
|
|
+ - name: Commit changes
|
|
|
|
+ uses: dom111/actions-js-build/commit@master
|
|
|
|
+ env:
|
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|