Change shuffle variation to do no controlled randomization (#26) #72
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
name: Parser and Interpreter CI | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- interpreter/** | |
- parser/** | |
pull_request: | |
branches: [ master ] | |
paths: | |
- interpreter/** | |
- parser/** | |
jobs: | |
parser: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./parser | |
strategy: | |
matrix: | |
node-version: [16, 18] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Parser - Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# using workspace as yarn workspaces only geenrate lock files in the root | |
- run: cd .. && yarn workspace @clyde-lang/parser install && yarn workspace @clyde-lang/parser build && yarn workspace @clyde-lang/parser test --coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
flag-name: run-parser-${{ matrix.node-version }} | |
parallel: true | |
base-path: ./parser | |
path-to-lcov: ./parser/coverage/lcov.info | |
interpreter: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./interpreter | |
strategy: | |
matrix: | |
node-version: [16, 18] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Interpreter - Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: cd .. && yarn workspace @clyde-lang/parser install && yarn workspace @clyde-lang/parser build && yarn workspace @clyde-lang/interpreter install && yarn workspace @clyde-lang/interpreter build && yarn workspace @clyde-lang/interpreter test --coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
flag-name: run-interpreter-${{ matrix.node-version }} | |
parallel: true | |
base-path: ./interpreter | |
path-to-lcov: ./interpreter/coverage/lcov.info | |
finish: | |
needs: [parser, interpreter] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
parallel-finished: true |