Explorar o código

[ci] setup github actions

Evan You %!s(int64=6) %!d(string=hai) anos
pai
achega
aa7cdd8de2
Modificáronse 1 ficheiros con 20 adicións e 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