Quellcode durchsuchen

👷 CI: add github action

chenshuai2144 vor 5 Jahren
Ursprung
Commit
8e4d09e703
1 geänderte Dateien mit 28 neuen und 0 gelöschten Zeilen
  1. 28 0
      .github/workflows/ci.yml

+ 28 - 0
.github/workflows/ci.yml

@@ -0,0 +1,28 @@
+name: Node CI
+
+on: [push]
+
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        node_version: [8.x, 10.x, 12.x]
+        os: [ubuntu-latest, windows-latest, macOS-latest]
+    steps:
+      - uses: actions/checkout@v1
+      - name: Use Node.js ${{ matrix.node_version }}
+        uses: actions/setup-node@v1
+        with:
+          node-version: ${{ matrix.node_version }}
+      - run: yarn
+      - run: yarn run lint
+      - run: yarn run tsc
+      - run: yarn run build
+      - run: yarn run test
+        env:
+          CI: true
+          HEADLESS: false
+          PROGRESS: none
+          NODE_ENV: test
+          NODE_OPTIONS: --max_old_space_size=4096