Skip to content

Merge pull request #56 from PiwikPRO/PPPSYS-48527-improve-iframe-hand… #100

Merge pull request #56 from PiwikPRO/PPPSYS-48527-improve-iframe-hand…

Merge pull request #56 from PiwikPRO/PPPSYS-48527-improve-iframe-hand… #100

Workflow file for this run

name: CI-CD
on: push
jobs:
build:
name: Lint, build and test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup yarn cache
uses: c-hive/gha-yarn-cache@d528cd63c28aed0a9f44b1cada95050d7aa95c2e
- name: Setup NodeJS 14
uses: actions/setup-node@v2
with:
node-version: '14'
- run: yarn install
- run: yarn lint
- run: yarn build
- run: yarn test
timeout-minutes: 30
deploy:
name: Deploy on github pages
if: github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- name: Setup NodeJS 16
uses: actions/setup-node@v2
with:
node-version: '16'
- run: yarn install
- run: yarn build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@0f24da7de3e7e135102609a4c9633b025be8411b
with:
branch: gh-pages
folder: docs/build
timeout-minutes: 30