Random generation of parse trees from grammar (untested yet) #14
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 workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: ci-build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: | |
- 'src/**' | |
- 'scripts/**' | |
- 'package.json' | |
- 'package-lock.json' | |
- 'tsconfig.json' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install, build and test | |
run: | | |
npm ci | |
npm run build --if-present | |
npm test | |
- name: Prepare for Releasing to 'dist' | |
run: | | |
cp -R docs ./out | |
cp README.md ./out | |
cp scripts/release.sh ./out | |
- uses: actions/checkout@v2 | |
with: | |
ref: dist | |
clean: false | |
- name: Push the transpiling-output code to dist branch | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
bash ./out/release.sh |