Skip to content

Commit

Permalink
chore: Pipeline CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgrdich committed May 3, 2024
1 parent 835716e commit 72ebf0b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: setup pnpm
uses: pnpm/action-setup@v3
with:
Expand All @@ -26,14 +21,25 @@ jobs:
standalone: true
dest: ~/setup-pnpm

- name: setup node
uses: actions/setup-node@v4
with:
node-version: "18.17.1"
cache: "pnpm"
cache-dependency-path: "./frontend/pnpm-lock.yaml"

- name: install dependencies
run: |
cd ./frontend
pnpm install
pnpm install --frozen-lockfile
- uses: actions/upload-artifact@v4
with:
name: Upload node_modules
path: ./frontend/node_modules

lint-FE:
needs: install-dependencies
lint:
needs: setup-application
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -50,11 +56,16 @@ jobs:
- name: setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
version: "8.15.3"
run_install: false
standalone: true
dest: ~/setup-pnpm

- uses: actions/download-artifact@v4
with:
name: download node_modules
path: ./frontend/

- name: Lint code
run: |
cd ./frontend
Expand Down
4 changes: 4 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@
"karma-jasmine-html-reporter": "~2.1.0",
"prettier-eslint": "^16.3.0",
"typescript": "~5.4.2"
},
"engines" : {
"node" : "18.17.1",
"pnpm": "8.15.3"
}
}

0 comments on commit 72ebf0b

Please sign in to comment.