fetch ci each stage
This commit is contained in:
@@ -4,7 +4,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
@@ -18,35 +18,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Upload node_modules
|
|
||||||
uses: https://gitea.com/actions/gitea-upload-artifact@main
|
|
||||||
with:
|
|
||||||
name: node_modules
|
|
||||||
path: node_modules/
|
|
||||||
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: install
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version: "24"
|
|
||||||
cache: "npm"
|
|
||||||
|
|
||||||
- name: Restore node_modules
|
|
||||||
uses: https://github.com/ChristopherHX/gitea-download-artifact@main
|
|
||||||
with:
|
|
||||||
name: node_modules
|
|
||||||
|
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: install
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
@@ -56,17 +32,14 @@ jobs:
|
|||||||
node-version: "24"
|
node-version: "24"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|
||||||
- name: Restore node_modules
|
- name: Install dependencies
|
||||||
uses: https://github.com/ChristopherHX/gitea-download-artifact@main
|
run: npm ci
|
||||||
with:
|
|
||||||
name: node_modules
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test
|
run: npm run test
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: install
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
@@ -76,10 +49,8 @@ jobs:
|
|||||||
node-version: "24"
|
node-version: "24"
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|
||||||
- name: Restore node_modules
|
- name: Install dependencies
|
||||||
uses: https://github.com/ChristopherHX/gitea-download-artifact@main
|
run: npm ci
|
||||||
with:
|
|
||||||
name: node_modules
|
|
||||||
|
|
||||||
- name: Install Playwright browsers
|
- name: Install Playwright browsers
|
||||||
run: npx playwright install --with-deps chromium
|
run: npx playwright install --with-deps chromium
|
||||||
|
|||||||
Reference in New Issue
Block a user