Skip to content

Commit

Permalink
Updated test build
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Mar 8, 2021
1 parent d5aba68 commit c408f48
Showing 1 changed file with 1 addition and 32 deletions.
33 changes: 1 addition & 32 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Does it build and publish?
name: Does it build?

on:
workflow_dispatch:
Expand Down Expand Up @@ -27,34 +27,3 @@ jobs:
- run: npm i

- run: npm start

- run: npm link

- run: |
git clone https://github.com/estruyf/doctor-sample
cd doctor-sample
doctor publish -a password --username "${{ secrets.USERNAME }}" --password "${{ secrets.PASSWORD }}" -u "${{ secrets.SITEURL_LINUX }}"
screenshots:
name: Take screenshots after publishing
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [build]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: |
npm i playwright-chromium node-sp-auth@3
node ./scripts/screenshots.js
env:
USER_NAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
SITEURL_LINUX: ${{ secrets.SITEURL_LINUX }}
- uses: actions/upload-artifact@v2
with:
name: Screenshots
path: screenshots/**/*.png

1 comment on commit c408f48

@vercel
Copy link

@vercel vercel bot commented on c408f48 Mar 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.