Skip to content

r

r #377

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "16.x"
- run: npm ci
working-directory: webapp
- run: npm test -- --watchAll=false
working-directory: webapp
- run: |
jq '.compilerOptions.noImplicitAny = false' tsconfig.json > INPUT.tmp && mv INPUT.tmp tsconfig.json
npm run build
working-directory: webapp
- name: Deploy
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: webapp/build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}