-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for generating grammars.dat and setup CI (#2)
* Make script work in node.js. The function `generate()` now just returns the blob. * Log which language is loading right now * Add GitHub action script for build and publish grammars.dat as artifact * Add Create Pull Request workflow * Update README.md Co-authored-by: Fela Ameghino <[email protected]>
- Loading branch information
1 parent
e686941
commit 2478423
Showing
7 changed files
with
365 additions
and
1,930 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,28 @@ | ||
name: Update grammars | ||
|
||
on: [ workflow_dispatch ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm install | ||
- run: npm start | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: grammars.dat | ||
path: ./libprisma/grammars.dat | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: Update grammars | ||
title: Update grammars | ||
branch: update-grammars |
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
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
Oops, something went wrong.