Skip to content

feat: create detailed image view (TT-1782) #184

feat: create detailed image view (TT-1782)

feat: create detailed image view (TT-1782) #184

Workflow file for this run

on: pull_request
name: Npm code check
jobs:
code-check-npm:
strategy:
fail-fast: false
matrix:
platform:
- [ self-hosted ]
- [ self-hosted, Windows ]
include:
- platform: [ self-hosted ]
linux: true
- platform: [ self-hosted, Windows ]
windows: true
linux: false
runs-on: ${{ matrix.platform }}
steps:
# Git fix for Windows, workaround for permission issues regarding self-hosted runners
- name: Windows; Git fix
if: ${{ matrix.windows }}
run: |
git config --global --add safe.directory C:/Users/lanman/actions-runner/_work/trokk/trokk
- uses: actions/checkout@v4
- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm' # Set this to npm, yarn or pnpm.
- name: Install frontend dependencies
run: npm ci
- name: Windows NPM; Install windows dependency
if: ${{ matrix.windows }}
run: npm install @tauri-apps/[email protected]
- name: Run EsLint
if: always()
run: npm run lint
# # TODO when tests are set up again
#- name: Run frontend tests
# if: always()
# run: npm run test