Fix dependency related build problems by downgrading. #1326
This file contains 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 | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Install Chrome Drivers" | |
run: sudo apt-get install xvfb | |
- name: "Node Cache" | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-cache-node-${{ hashFiles('**/package.json', '**/package-lock.json') }} | |
- name: "Node Modules Cache" | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-cache-node_modules-${{ hashFiles('**/package.json', '**/package-lock.json') }} | |
- name: "Setup Node" | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: "Install Node" | |
run: npm install | |
- name: "Node Build" | |
run: npm run build | |
- name: "Node Tests" | |
run: xvfb-run --auto-servernum npm run test:ci | |
- name: "Coveralls Coverage Report" | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: ${{ github.workspace }}/static/weaver-components/reports/coverage/wvr-elements/lcov.info | |
- name: "Build Static Production" | |
run: xvfb-run --auto-servernum npm run build:static-production | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
- name: "Deploy GH-Pages" | |
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
uses: JamesIves/[email protected] | |
with: | |
github_token: ${{ secrets.github_token }} | |
branch: gh-pages | |
folder: static/weaver-components | |
clean: true | |
single_commit: true |