-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Pipeline CI initialization chore: Pipeline CI fixes
- Loading branch information
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters