Create .env.public as a place to check non-secret environment variabl… #387
This file contains hidden or 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: Typecheck, lint, and build front-end | |
| on: [push] | |
| jobs: | |
| front-end-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: npm install | |
| working-directory: front-end | |
| run: npm install | |
| - name: Lint | |
| working-directory: front-end | |
| run: npx eslint . | |
| front-end-typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: npm install | |
| working-directory: front-end | |
| run: npm install | |
| - name: Typecheck | |
| working-directory: front-end | |
| run: npx tsc --noEmit | |
| back-end-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: "1.36.3" | |
| - name: Typecheck | |
| working-directory: back-end | |
| run: deno task check | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: [front-end-lint, front-end-typecheck, back-end-check] | |
| env: | |
| RENDER_DEPLOY_URL_BACKEND: ${{ secrets.RENDER_DEPLOY_URL_BACKEND }} | |
| RENDER_DEPLOY_URL_FRONTEND: ${{ secrets.RENDER_DEPLOY_URL_FRONTEND }} | |
| steps: | |
| - name: Deploy | |
| run: curl "$RENDER_DEPLOY_URL_BACKEND" && curl "$RENDER_DEPLOY_URL_FRONTEND" |