Explorar el Código

[ci] setup github actions

Evan You hace 6 años
padre
commit
aa7cdd8de2
Se han modificado 1 ficheros con 20 adiciones y 0 borrados
  1. 20 0
      .github/workflows/nodejs.yml

+ 20 - 0
.github/workflows/nodejs.yml

@@ -0,0 +1,20 @@
+name: Node CI
+
+on: [push]
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v1
+    - name: Use Node.js
+      uses: actions/setup-node@v1
+      with:
+        node-version: '12.x'
+    - name: test
+      run: |
+        yarn
+        yarn test
+      env:
+        CI: true
+        TEST: true