Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move npm ci installation for generator to a script #54

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading