Skip to content

Commit

Permalink
Set up CI for the client print module
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Jun 29, 2023
1 parent 6ab108c commit e5c05b0
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e5c05b0

Please sign in to comment.