Skip to content

Updated postcss version. #412

Updated postcss version.

Updated postcss version. #412

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build_test:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('demo/docker/Dockerfile') }}
restore-keys: |
${{ runner.os }}-buildx-
- uses: docker/build-push-action@v2
with:
file: demo/docker/Dockerfile
platforms: linux/amd64
tags: itwinui/cypress:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
load: true
- name: Use Node 16.X
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn npm audit
- run: yarn lint
- run: yarn lint:copyright ${{ github.workspace }}/*/**.{js,ts,tsx,scss,html}
- run: yarn build
- run: yarn build:demo
- run: yarn test:ci
- name: Upload tests artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: tests-results
path: |
demo/cypress-visual-report/
demo/cypress-visual-screenshots/
deploy:
name: Deploy demo HTML page
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node 16.X
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn build:demo
- name: Host Demo on GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ${{ github.workspace }}/demo/dist
git-config-name: github-actions[bot]
git-config-email: github-actions[bot]@users.noreply.github.com