Speed up Enum decoding by calling Generic ahead of time (#2) #18
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up a PureScript toolchain | |
uses: purescript-contrib/setup-purescript@main | |
with: | |
purescript: "0.15.0" | |
psa: "latest" | |
spago: "latest" | |
- name: Cache NPM dependencies | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package-lock.json') }} | |
path: | | |
node_modules | |
*/*/node_modules | |
- name: Cache PureScript dependencies | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} | |
path: | | |
.spago | |
output | |
- name: Install dependencies | |
run: | | |
npm install | |
spago install | |
- name: Build source | |
run: spago build --no-install | |
- name: Run tests | |
run: npm test | |
- name: Run benchmarks | |
run: | | |
npm run bench | |
npm run bench-micro |