From cf7772226483363d0a29f13d257271add4499ef6 Mon Sep 17 00:00:00 2001 From: Anton Trunov Date: Wed, 10 Jul 2024 21:34:09 +0400 Subject: [PATCH] chore(ci): check npm publish won't find issues in package.json --- .github/workflows/tact.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tact.yml b/.github/workflows/tact.yml index 0140416dd..9d8f995c8 100644 --- a/.github/workflows/tact.yml +++ b/.github/workflows/tact.yml @@ -60,6 +60,10 @@ jobs: run: | yarn knip + - name: Check there are no errors to be fixed in package.json + run: | + npm pkg fix && git diff --exit-code + - name: Show an example .pkg file on Windows if: runner.os == 'Windows' run: | @@ -69,6 +73,11 @@ jobs: run: | yarn link + - name: CLI Test | Check tact --version + if: runner.os != 'Windows' + run: | + tact --version + - name: CLI Test | Compare Tact version from CLI flag `--version` against package.json if: runner.os != 'Windows' run: | @@ -77,6 +86,7 @@ jobs: fi - name: CLI Test | Check single-contract compilation + if: runner.os != 'Windows' run: | tact --check bin/test/success.tact tact --func bin/test/success.tact @@ -84,6 +94,7 @@ jobs: tact --with-decompilation bin/test/success.tact - name: CLI Test | Check compilation via `--config` + if: runner.os != 'Windows' run: | # should output complete results tact --config bin/test/success.config.json @@ -118,6 +129,7 @@ jobs: ! tact --config bin/test/fail.config.json - name: CLI Test | Evaluate expression + if: runner.os != 'Windows' run: | tact -e '(1 + 2 * (pow(3,4) - 2) << 1 & 0x54 | 33 >> 1) * 2 + 2' @@ -129,7 +141,6 @@ jobs: yarn link @tact-lang/compiler yarn build yarn test - tact --version - name: Test compatibility with Blueprint run: | @@ -138,4 +149,3 @@ jobs: yarn link @tact-lang/compiler yarn build yarn test - tact --version