Skip to content

fixed linting rules and ci steps #18

fixed linting rules and ci steps

fixed linting rules and ci steps #18

name: Onlineshop backend
on: [push, pull_request]
jobs:
backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.11.x
cache: yarn
cache-dependency-path: ./onlineshop/source/server/yarn.lock
- name: Lint backend
run: |
cd ./onlineshop/source/server/
yarn install --immutable --immutable-cache --check-cache
yarn run lint
- name: Test server
run: |
cd ./onlineshop/source/server/
yarn install --immutable --immutable-cache --check-cache
yarn run test