Liu Song’s Projects


~/Projects/funkit

git clone https://code.lsong.org/funkit

Commit

Commit
44b8a18c6fb88b4b14ff931ae5c43d1ffb79b85a
Author
Lsong <[email protected]>
Date
2021-09-18 17:24:45 +0800 +0800
Diffstat
 .github/workflows/node.js.yml | 30 ++++++++++++++++++++++++++++++

add github action


diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
new file mode 100644
index 0000000000000000000000000000000000000000..d4ae0fc4de56a9de69089d269ea54639615670a1
--- /dev/null
+++ b/.github/workflows/node.js.yml
@@ -0,0 +1,30 @@
+# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
+
+name: Node.js CI
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        node-version: [12.x]
+        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Use Node.js ${{ matrix.node-version }}
+      uses: actions/setup-node@v2
+      with:
+        node-version: ${{ matrix.node-version }}
+    - run: ./deploy.sh
+    - name: Add & Commit
+      uses: EndBug/[email protected]