Skip to content

CLI deployment of Wst using Blockfrost #101

CLI deployment of Wst using Blockfrost

CLI deployment of Wst using Blockfrost #101

name: ci-check-generated-code
on:
push:
branches:
- main
pull_request:
concurrency:
group: "check-generated-code ${{ github.ref }}"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
# install deps.
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsystemd-dev
- name: Install system dependencies
uses: input-output-hk/actions/base@latest
- uses: haskell-actions/setup@v2
id: cabal-setup
with:
ghc-version: '9.6.6'
cabal-version: '3.10.3.0'
- uses: actions/checkout@v4
- name: Cache .cabal
uses: actions/cache@v3
with:
path: ${{ steps.cabal-setup.outputs.cabal-store }}
key: cabal-${{ hashFiles('cabal.project') }}
- name: build & test
run: |
cabal update
cabal build -j all --enable-tests
cabal test all
- name: check compiled scripts are consistent
# git diff --quiet implies --exit-code
run: |
cabal run export-smart-tokens 08a8d0bb8717839931b0a594f7c28b0a3b7c78f6e9172e977e250eab7637d879.0 '"addr_test1qq986m3uel86pl674mkzneqtycyg7csrdgdxj6uf7v7kd857kquweuh5kmrj28zs8czrwkl692jm67vna2rf7xtafhpqk3hecm"'
cabal run write-openapi-schema -- generated/openapi/schema.json
git diff --quiet