mirror of
https://github.com/IT4Change/IT4C.dev.git
synced 2026-03-01 12:44:23 +00:00
* rename test:lint:eslint to lint and update eslint-config-it4c package * simplify config and make it ts * jest update & ts * suppress server logging output in tests * remove test node_env as it is default for jest * use eslint-config-it4c * packages = module * fix tailwind as ts * eslitn autofix * more fixes * tsconfig & some eslint rules * fixes * more fixes * more exceptions * do not allow warnings * fix config * ignore vuepress generated configs * ts include fix
35 lines
998 B
YAML
35 lines
998 B
YAML
name: test:unit
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
files-changed:
|
|
name: Detect File Changes - unit
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
unit: ${{ steps.filter.outputs.unit }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.1.7
|
|
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
unit:
|
|
- '.github/workflows/**/*'
|
|
- 'backend/**/*'
|
|
|
|
unit:
|
|
if: needs.files-changed.outputs.unit == 'true'
|
|
name: Unit
|
|
needs: files-changed
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.1.7
|
|
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v4.0.3
|
|
with:
|
|
node-version-file: './.tool-versions'
|
|
- name: Install Dependencies & Build Library
|
|
run: |
|
|
npm install
|
|
npm test
|
|
working-directory: ./backend |