Skip to content

Commit

Permalink
Merge pull request #4 from calcit-lang/updates
Browse files Browse the repository at this point in the history
workflow updates
  • Loading branch information
csvwolf authored Jun 26, 2023
2 parents 27c8d11 + 3c38df1 commit 9fb6ebb
Show file tree
Hide file tree
Showing 6 changed files with 209 additions and 119 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,26 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: ACTIONS_ALLOW_UNSECURE_COMMANDS
id: ACTIONS_ALLOW_UNSECURE_COMMANDS
run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: add cr
run: |
mkdir -p $GITHUB_WORKSPACE/bin
wget -O $GITHUB_WORKSPACE/bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.17/cr
chmod +x $GITHUB_WORKSPACE/bin/cr
echo "::add-path::$GITHUB_WORKSPACE/bin"
- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.2/cr'
name: 'cr'
version: '0.7.2'

- name: "prepare modules"
run: >
mkdir -p ~/.config/calcit/modules/ && cd ~/.config/calcit/modules/
&& git clone https://github.com/calcit-lang/calcit-test.git
- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.2/caps'
name: 'caps'
version: '0.7.2'

- name: "test"
run: cr -1
run: caps --ci && cr -1

- run: cr --emit-js -1 && yarn && node ./main.mjs
Loading

0 comments on commit 9fb6ebb

Please sign in to comment.