[feat] add compliance page #723
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: 'PR Checks' | |
on: [pull_request] | |
jobs: | |
pr-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install | |
run: yarn install | |
- name: Create env file | |
run: | | |
echo "VITE_FIX_LANDING_PAGE_URL=${{ vars.FIX_LANDING_PAGE_URL }}" > .env.production | |
echo "VITE_FIX_DOCS_URL=${{ vars.FIX_DOCS_URL }}" > .env.production | |
echo "VITE_BOOK_A_CALL_URL=${{ vars.BOOK_A_CALL_URL }}" >> .env.production | |
echo "VITE_DISCORD_URL=${{ vars.DISCORD_URL }}" >> .env.production | |
echo "VITE_GITHUB_URL=${{ vars.NGITHUB_URL }}" >> .env.production | |
echo "VITE_VIDEOS_ASSETS_URL=${{ vars.VIDEOS_ASSETS_URL }}" >> .env.production | |
echo "VITE_IMAGES_ASSETS_URL=${{ vars.IMAGES_ASSETS_URL }}" >> .env.production | |
echo "VITE_USE_PROXY=false" >> .env.production | |
echo "VITE_MIN_ACTIVE_MINUTES=${{ vars.MIN_ACTIVE_MINUTES }}" >> .env.production | |
echo "VITE_NETWORK_RETRY_COUNT=${{ vars.NETWORK_RETRY_COUNT }}" >> .env.production | |
echo "VITE_WEBSOCKET_RETRY_TIMEOUT=${{ vars.WEBSOCKET_RETRY_TIMEOUT }}" >> .env.production | |
echo "VITE_USE_MOCK=false" >> .env.production | |
echo "VITE_MUI_LICENSE_KEY=${{ secrets.MUI_LICENSE_KEY }}" >> .env.production | |
echo "VITE_VERSION=${{ github.sha }}" >> .env.production | |
echo "VITE_LOAD_PAGE_TIMEOUT=${{ vars.LOAD_PAGE_TIMEOUT }}" >> .env.production | |
- name: Add models | |
run: | | |
echo "[]" > mock-apis/data/model.json | |
echo "{ \"accounts\": [], \"regions\": [], \"kinds\": [], \"severity\": [] }" > mock-apis/data/search-start.json | |
echo "[]" > mock-apis/data/table.json | |
echo "[]" > mock-apis/data/tags.json | |
- name: Update translation and exit if wrong | |
run: yarn i18n:extract && git diff --exit-code -- '*.po' | |
- name: Run tests | |
run: yarn test | |
- name: Run Lint | |
run: yarn lint | |
- name: Run Lint TSC | |
run: yarn lint:tsc | |
- name: Run check prettier | |
run: yarn format:check | |
- name: Run Test Storybook Build | |
run: yarn build-storybook |