# 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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs name: Node.js Github Side on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: self-hosted steps: - uses: actions/checkout@v2 - name: Use Node.js 20.x uses: actions/setup-node@v2 with: node-version: 20.x - run: echo "test" - run: npm ci - run: npm run build env: VITE_SYNCDB_ENDPOINT: ${{ secrets.VITE_SYNCDB_ENDPOINT }} VITE_USER_ENDPOINT: ${{ secrets.VITE_USER_ENDPOINT }} NODE_OPTIONS: --max-old-space-size=1024