Skip to content

Commit

Permalink
CI: Compile and run the example
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Jan 18, 2024
1 parent 58f2e03 commit cec25e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@ jobs:

# - name: Doctest
# run: stack test --stack-yaml=stack-purs${{ matrix.purs }}.yaml

- name: Compile and run the example
working-directory: ./example
run: |
mv package.json package.json.tmp
jq --arg '.devDependencies.purescript="^${{ matrix.purs }}"' package.json.tmp > package.json
npx spago build
stack exec --stack-yaml=../stack-purs${{ matrix.purs }} -- purs-tsd-gen -d output
npx tsc --strict --module es2015 user.mts
node user.mjs

0 comments on commit cec25e9

Please sign in to comment.