Browse Source

Merge pull request #503 from mnaamani/workflow-pioneer-build-check

Add back Pioneer build check
Mokhtar Naamani 4 years ago
parent
commit
5070cfd044
2 changed files with 38 additions and 1 deletions
  1. 37 0
      .github/workflows/pioneer-pr.yml
  2. 1 1
      package.json

+ 37 - 0
.github/workflows/pioneer-pr.yml

@@ -0,0 +1,37 @@
+name: Pioneer-PR
+on: [pull_request, push]
+
+jobs:
+  pioneer_build_code:
+    name: Pioneer Build Code
+    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 pioneer run build:code
+
+  pioneer_build_i18n:
+    name: Pioneer Build i18n
+    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 pioneer run build:i18n

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
 		"test": "yarn && yarn workspaces run test",
 		"test-migration": "yarn && yarn workspaces run test-migration",
 		"postinstall": "yarn workspace @joystream/types build",
-    "cargo-checks": "devops/git-hooks/pre-commit && devops/git-hooks/pre-push",
+		"cargo-checks": "devops/git-hooks/pre-commit && devops/git-hooks/pre-push",
 		"cargo-build": "scripts/cargo-build.sh"
 	},
 	"workspaces": [