feat: Tauri v2 & React rewrite (TT-1428) #161
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
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 | |
- name: Run frontend tests | |
if: always() | |
run: npm run test |