Add GitHub Actions
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 25 Sep 2020 15:14:49 +0000 (17:14 +0200)
committerTim Düsterhus <timwolla@googlemail.com>
Fri, 25 Sep 2020 15:25:56 +0000 (17:25 +0200)
.github/workflows/ci.yml [new file with mode: 0644]

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644 (file)
index 0000000..570c165
--- /dev/null
@@ -0,0 +1,31 @@
+name: CI
+
+on:
+  push:
+  pull_request:
+  schedule:
+  - cron: '0 0 1 * *'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        node:
+          - '10'
+          - '12'
+          - '14'
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setup Node.js environment
+        uses: actions/setup-node@v1
+        with:
+          node-version: ${{ matrix.node }}
+      - run: npm install
+      - run: npx tsc
+      - name: Smoke Test
+        run: |
+          mkdir smoketest/
+          node dist/index.js --out-dir=smoketest/
+      - name: Show results of Smoke Test
+        run: find smoketest/