Bläddra i källkod

t pusMerge branch 'master' of github.com:calebporzio/project-x

Caleb Porzio 5 år sedan
förälder
incheckning
86279e22c7
1 ändrade filer med 26 tillägg och 0 borttagningar
  1. 26 0
      .github/workflows/run-tests.yml

+ 26 - 0
.github/workflows/run-tests.yml

@@ -0,0 +1,26 @@
+name: Run Jest Tests
+
+on: [push]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        node-version: [12.x]
+
+    steps:
+    - uses: actions/checkout@v1
+    - name: Use Node.js ${{ matrix.node-version }}
+      uses: actions/setup-node@v1
+      with:
+        node-version: ${{ matrix.node-version }}
+    - name: npm install, build, and test
+      run: |
+        npm ci
+        npm run build --if-present
+        npm test
+      env:
+        CI: true