remove iframe example #431
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Pipeline | |
on: | |
# [pull_request, push] | |
pull_request: | |
push: | |
branches: | |
- master # Push events on master branch | |
- dev | |
# use https://marketplace.visualstudio.com/items?itemName=me-dutour-mathieu.vscode-github-actions to validate yml in vscode | |
# env: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v1 | |
- name: Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- run: yarn install | |
- run: npm run test | |
- name: upload junit | |
uses: actions/upload-artifact@v1 | |
with: | |
name: junit | |
path: junit.xml | |
- uses: ashley-taylor/[email protected] | |
if: always() | |
with: | |
access-token: ${{ secrets.GITHUB_TOKEN }} | |
path: junit.xml | |
- run: npm run test:coverage | |
- name: upload code coverage | |
uses: actions/upload-artifact@v1 | |
with: | |
name: Report-CodeCoverage | |
path: coverage | |
- run: npm run build | |
- name: build lib,dist | |
run: | | |
npm run build | |
npm run build:client | |
- name: upload lib | |
uses: actions/upload-artifact@v1 | |
with: | |
name: lib | |
path: lib | |
- name: upload dist | |
uses: actions/upload-artifact@v1 | |
with: | |
name: dist | |
path: dist |