Skip to content

Dashboard v2

Dashboard v2 #16

Workflow file for this run

name: Pull Request
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup cache
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Build
env:
VITE_APP_URL: pull-request
VITE_ROCKETCHAT_URL: pull-request
VITE_CODIMD_URL: pull-request
VITE_GITLAB_CLIENT_ID: pull-request
VITE_GITLAB_AUTHORITY: pull-request
run: npm run build