Skip to content

Commit

Permalink
feat: move npm ci installation for generator to a script (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaShkaruba authored Jul 14, 2023
1 parent 2ac6e20 commit dadded4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: '18.x'
cache: 'npm'
- name: Install Packages
run: npm ci && cd src/generator/ && npm ci
run: npm ci
- name: Lint Files
run: npm run lint

Expand All @@ -39,7 +39,7 @@ jobs:
node-version: '18.x'
cache: 'npm'
- name: Install Packages
run: npm ci && cd src/generator/ && npm ci
run: npm ci
- name: Generate Parsers
run: npm run generate
- name: Check That Generated Files Are Unchanged
Expand All @@ -59,6 +59,6 @@ jobs:
node-version: '18.x'
cache: 'npm'
- name: Install Packages
run: npm ci && cd src/generator/ && npm ci
run: npm ci
- name: Unit Tests
run: npm run test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prepare": "husky install",
"test": "npm run generate && npm run test_without_generate",
"test_without_generate": "jest src/parsing",
"generate": "cd src/generator && node main.js generic",
"generate": "cd src/generator && npm ci && node main.js generic",
"lint": "npm run prettier -- --check",
"fix": "npm run prettier -- --write",
"prettier": "prettier \"**/*.{md,yaml,yml,json}\"",
Expand Down

0 comments on commit dadded4

Please sign in to comment.