Merge pull request #22 from calcit-lang/destruct #57
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: {} | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- uses: supplypike/setup-bin@v3 | |
with: | |
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.12/cr' | |
name: 'cr' | |
version: '0.7.12' | |
- uses: supplypike/setup-bin@v3 | |
with: | |
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.12/caps' | |
name: 'caps' | |
version: '0.7.12' | |
- name: "test" | |
run: caps --ci && mode=dev cr --entry test -1 | |
- name: "test js" | |
run: > | |
yarn | |
&& mode=dev cr --entry test -1 --emit-js | |
&& mode=dev node test.mjs |