Skip to content

FE: Enhancement 4 create topic button #63

FE: Enhancement 4 create topic button

FE: Enhancement 4 create topic button #63

Workflow file for this run

name: "Frontend: PR/main build & test"
on:
push:
branches:
- main
pull_request_target:
types: ["opened", "edited", "reopened", "synchronize"]
paths:
- "contract/**"
- "frontend/**"
jobs:
build-and-test:
env:
CI: true
NODE_ENV: dev
runs-on: ubuntu-latest
permissions: # TODO remove when public
contents: read
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ github.token }} # TODO remove when public
- uses: pnpm/[email protected]
with:
version: 8.6.12
- name: Install node
uses: actions/[email protected]
with:
node-version: "18.17.1"
cache: "pnpm"
cache-dependency-path: "./frontend/pnpm-lock.yaml"
- name: Install Node dependencies
run: |
cd frontend/
pnpm install --frozen-lockfile
- name: Generate sources
run: |
cd frontend/
pnpm gen:sources
- name: Linter
run: |
cd frontend/
pnpm lint:CI
- name: Tests
run: |
cd frontend/
pnpm test:CI
- name: SonarCloud Scan
if: false # TODO remove when public
uses: sonarsource/sonarcloud-github-action@master
with:
projectBaseDir: ./frontend
args: -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} -Dsonar.pullrequest.branch=${{ github.head_ref }} -Dsonar.pullrequest.base=${{ github.base_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FRONTEND }}