mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-26 15:51:51 +01:00
seperate building and linting
This commit is contained in:
parent
b42d36c5ac
commit
68a1470447
24
.github/workflows/linting_testing.yml
vendored
24
.github/workflows/linting_testing.yml
vendored
@ -20,13 +20,11 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
|
cache: 'yarn'
|
||||||
|
|
||||||
- name: Install Yarn packages
|
- name: Install Yarn packages
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- name: Build Project
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Run ESLint Report
|
- name: Run ESLint Report
|
||||||
run: yarn lint:report
|
run: yarn lint:report
|
||||||
# continue on error, so it still reports it in the next step
|
# continue on error, so it still reports it in the next step
|
||||||
@ -36,3 +34,23 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: eslint_report.zip
|
name: eslint_report.zip
|
||||||
path: eslint_report.json
|
path: eslint_report.json
|
||||||
|
|
||||||
|
building:
|
||||||
|
name: Build project
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: 'yarn'
|
||||||
|
|
||||||
|
- name: Install Yarn packages
|
||||||
|
run: yarn install
|
||||||
|
|
||||||
|
- name: Build Project
|
||||||
|
run: yarn build
|
||||||
|
Loading…
Reference in New Issue
Block a user