Skip to content

Commit

Permalink
chore: Pipeline CI initialization
Browse files Browse the repository at this point in the history
chore: Pipeline CI initialization

chore: Pipeline CI fixes
  • Loading branch information
Mgrdich committed May 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3ce45c1 commit e26df93
Showing 2 changed files with 76 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Frontend CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]


jobs:
setup-application:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
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 --frozen-lockfile
- uses: actions/upload-artifact@v4
with:
name: Upload node_modules
path: ./frontend/node_modules

lint:
needs: setup-application
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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:
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
pnpm lint
4 changes: 4 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -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 e26df93

Please sign in to comment.