Skip to content

M2-9653 Deploy report server to UAT using GHA #98

M2-9653 Deploy report server to UAT using GHA

M2-9653 Deploy report server to UAT using GHA #98

Workflow file for this run

name: CI
on: [pull_request]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node version
run: |
echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install deps
run: npm ci
- name: Running linter
run: npm run lint
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node version
run: |
echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install deps
run: npm ci
- name: Running tests
run: npm run test
build:
name: Build
needs: [lint, tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node version
run: |
echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install deps
run: npm ci
- name: Build app
run: npm run build