From fefe61c55c6f307fd6cf3849a973badd55cf1122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Thu, 17 Oct 2024 17:09:23 -0700 Subject: [PATCH] add Cadence-based tests to CI --- .github/workflows/ci.yml | 8 +++++++- contracts/flow.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f55a781..ed45a24b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,5 +18,11 @@ jobs: run: flow version - name: Update PATH run: echo "/root/.local/bin" >> $GITHUB_PATH - - name: Run tests + - name: Run Go-based tests run: export GOPATH=$HOME/go && make ci + + - name: Install Flow CLI + run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" + + - name: Run Cadence-based tests + run: cd contracts && flow test --cover --covercode="contracts" Crypto_test.cdc diff --git a/contracts/flow.json b/contracts/flow.json index 7604b6c3..c9a8389a 100644 --- a/contracts/flow.json +++ b/contracts/flow.json @@ -8,7 +8,7 @@ }, "contracts": { "Crypto": { - "source": "crypto.cdc", + "source": "Crypto.cdc", "aliases": { "testing": "0x0000000000000007" }