From e5c05b01ac05de2a2ff0ee78c34c204293b5860b Mon Sep 17 00:00:00 2001 From: Carlo Beltrame Date: Thu, 29 Jun 2023 19:46:18 +0200 Subject: [PATCH] Set up CI for the client print module --- .github/workflows/continuous-integration.yml | 37 +++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 3f6f44f0ade..ab405ee2c82 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -74,11 +74,40 @@ jobs: npm run lint:check:eslint result=$(npm run lint:check:prettier) echo $result - if echo $result | grep -E "Code style issues found"; then + if echo $result | grep -E "Code style issues found"; then exit 1 fi working-directory: frontend + client-print-eslint: + name: 'Lint: ClientPrint (ESLint)' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 + + - uses: actions/setup-node@v3 + with: + node-version: '18.16.1' + + - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - run: npm ci --no-audit + working-directory: pdf + + - run: | + npm run lint:check:eslint + result=$(npm run lint:check:prettier) + echo $result + if echo $result | grep -E "Code style issues found"; then + exit 1 + fi + working-directory: pdf + print-eslint: name: 'Lint: Print (ESLint)' runs-on: ubuntu-latest @@ -199,6 +228,12 @@ jobs: restore-keys: | ${{ runner.os }}-node- + - run: npm ci --no-audit + working-directory: pdf + + - run: npm run build + working-directory: pdf + - run: npm ci --no-audit working-directory: frontend