Просмотр исходного кода

github actions: add type and cli checks

Mokhtar Naamani 4 лет назад
Родитель
Сommit
3ff705b8d2
2 измененных файлов с 41 добавлено и 0 удалено
  1. 21 0
      .github/workflows/joystream-cli.yml
  2. 20 0
      .github/workflows/types.yml

+ 21 - 0
.github/workflows/joystream-cli.yml

@@ -0,0 +1,21 @@
+name: joystream-cli
+on: [pull_request, push]
+
+jobs:
+  types_build_ubuntu:
+    name: Ubuntu 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: build
+      run: |
+        yarn install --frozen-lockfile
+        yarn workspace @joystream/types build
+        yarn workspace joystream-cli build

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

@@ -0,0 +1,20 @@
+name: "@joystream/types"
+on: [pull_request, push]
+
+jobs:
+  types_build_ubuntu:
+    name: Ubuntu 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: build
+      run: |
+        yarn install --frozen-lockfile
+        yarn workspace @joystream/types build