Explorar o código

chore: Tidy up workflow config

Michael Bromley %!s(int64=6) %!d(string=hai) anos
pai
achega
200370fe81

+ 3 - 2
.github/workflows/build_and_test.yml

@@ -23,11 +23,12 @@ jobs:
       uses: actions/setup-node@v1
       with:
         node-version: ${{ matrix.node-version }}
-    - name: install, build, and test
+    - name: Install & build
       run: |
         yarn install
         yarn bootstrap
         yarn lerna run build
-        yarn test:all
       env:
         CI: true
+    - name: Test
+      run: yarn test:all

+ 1 - 13
.github/workflows/publish_and_install.yml

@@ -11,20 +11,13 @@ jobs:
   publish_install:
 
     runs-on: ubuntu-latest
-    #services:
-    #  verdaccio:
-    #    image: verdaccio/verdaccio
-    #    ports:
-    #      - 4873
-    #    # volumes:
-    #    #   - "./verdaccio:/verdaccio/conf"
     steps:
     - uses: actions/checkout@v1
     - name: Use Node.js 12.x
       uses: actions/setup-node@v1
       with:
         node-version: 12.x
-    - name: Install & build
+    - name: Install & bootstrap
       run: |
         yarn install
         yarn bootstrap
@@ -36,11 +29,7 @@ jobs:
         mkdir -p $HOME/.config/verdaccio
         cp -v ./.github/workflows/verdaccio/config.yaml $HOME/.config/verdaccio/config.yaml
         verdaccio --config $HOME/.config/verdaccio/config.yaml &
-        sleep 10s
     - name: Publish to Verdaccio
-      env:
-        #VERDACCIO_URL: http://localhost:${{ job.services.verdaccio.ports['4873'] }}
-        VERDACCIO_URL: http://localhost:4873
       run: |
         npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}
         npm set //localhost:4873/:_authToken=${{ secrets.VERDACCIO_AUTH_TOKEN }}
@@ -52,4 +41,3 @@ jobs:
         cd $HOME/install
         npm dist-tag ls @vendure/create
         npx @vendure/create@ci test-app --ci
-