[#38] [Chore] UI Integration Testing - Question page and Completion page #305
Workflow file for this run
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: Deploy Preview to Netlify | |
on: pull_request | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy-preview: | |
name: Build and Deploy preview on Netlify | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install modules | |
run: npm ci | |
- name: Build | |
run: npm run build | |
env: | |
REACT_APP_API_BASE_URL: ${{ secrets.REACT_APP_API_BASE_URL }} | |
REACT_APP_CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }} | |
REACT_APP_CLIENT_SECRET: ${{ secrets.REACT_APP_CLIENT_SECRET }} | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
timeout-minutes: 5 | |
with: | |
publish-dir: './build' | |
deploy-message: '#${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}' | |
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | |
enable-commit-comment: false | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |