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

chore: Reinstate publish & install GH actions workflow

Michael Bromley 6 лет назад
Родитель
Сommit
77147a14f7
2 измененных файлов с 15 добавлено и 16 удалено
  1. 14 16
      .github/workflows/publish_and_install.yml
  2. 1 0
      README.md

+ 14 - 16
.github/workflows/publish_and_install.yml

@@ -1,26 +1,24 @@
 name: Publish & Install
-# Temporarily disabled this workflow because the last step (installing from Verdaccio) is consistently
-# failing and despite numerous attempts to stabilize, it still fails. Therefore this is not useful at
-# the moment.
-# on:
-#   push:
-#     branches:
-#     - master
-#   pull_request:
-#     branches:
-#     - master
 on:
-  deployment
+  push:
+    branches:
+    - master
+  pull_request:
+    branches:
+    - master
 jobs:
   publish_install:
-
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest, macOS-latest]
+        node-version: [10.x, 12.x]
     steps:
     - uses: actions/checkout@v1
-    - name: Use Node.js 12.x
+    - name: Use Node.js ${{ matrix.node-version }}
       uses: actions/setup-node@v1
       with:
-        node-version: 12.4.x
+        node-version: ${{ matrix.node-version }}
     - name: Install & bootstrap
       run: |
         yarn install
@@ -44,4 +42,4 @@ jobs:
         mkdir -p $HOME/install
         cd $HOME/install
         npm dist-tag ls @vendure/create
-        npx @vendure/create@ci test-app --ci --use-npm --log-level verbose
+        npx @vendure/create@ci test-app --ci --use-npm

+ 1 - 0
README.md

@@ -3,6 +3,7 @@
 A headless [GraphQL](https://graphql.org/) ecommerce framework built on [Node.js](https://nodejs.org) with [Nest](https://nestjs.com/) with [TypeScript](http://www.typescriptlang.org/).
 
 [![Build Status](https://github.com/vendure-ecommerce/vendure/workflows/Build%20&%20Test/badge.svg)](https://github.com/vendure-ecommerce/vendure/actions) 
+[![Build Status](https://github.com/vendure-ecommerce/vendure/workflows/Publish%20&%20Install/badge.svg)](https://github.com/vendure-ecommerce/vendure/actions)
 [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)
 
 ### [www.vendure.io](https://www.vendure.io/)