Skip to content

fix: upgrade @compodoc/compodoc from 1.1.22 to 1.1.23 (#441) #976

fix: upgrade @compodoc/compodoc from 1.1.22 to 1.1.23 (#441)

fix: upgrade @compodoc/compodoc from 1.1.22 to 1.1.23 (#441) #976

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
demo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install project dependencies
run: npm i
- name: Build atft library
run: npx ng build atft
- name: Build prod
run: npx ng build --configuration "production" --base-href "https://makimenko.github.io/angular-template-for-threejs/demo/" --output-path ./dist/gh-pages-deploy/demo
- name: Upload build
uses: actions/upload-artifact@v1
with:
name: demo
path: ./dist/gh-pages-deploy
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install project dependencies
run: npm i
- name: Build atft library
run: npx ng build atft
- name: Test
run: |
sudo apt-get update
sudo apt-get install -y xvfb
Xvfb :99 &
export DISPLAY=:99
npx ng test --watch=false --code-coverage
- name: Code coverage
run: npx codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install project dependencies
run: npm i
- name: Lint
run: npx ng lint
storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install project dependencies
run: npm i
- name: Build atft library
run: npx ng build atft
- name: Build storybook
run: npx ng run angular-template-for-threejs:build-storybook:production
- name: Upload storybook
uses: actions/upload-artifact@v1
with:
name: storybook
path: ./dist/gh-pages-deploy
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install project dependencies
run: npm i
- name: Generate documentation
run: npx compodoc -p projects/atft/tsconfig.lib.json -d dist/gh-pages-deploy
- name: Upload doc
uses: actions/upload-artifact@v1
with:
name: doc
path: ./dist/gh-pages-deploy
publish:
runs-on: ubuntu-latest
needs: [demo, test, storybook, doc, lint]
if: github.ref == 'refs/heads/master'
steps:
- name: Download demo
uses: actions/download-artifact@v1
with:
name: demo
path: dist
- name: Download storybook
uses: actions/download-artifact@v1
with:
name: storybook
path: dist
- name: Download doc
uses: actions/download-artifact@v1
with:
name: doc
path: dist
- name: Deploy
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./dist