From 949ed4f2ea3af509dd4e6d65a16189ee6e146130 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Wed, 9 Oct 2024 17:59:27 +0300 Subject: [PATCH] workflows: enable linter for example contracts Avoid situations like 9f931233016b1d699ea9ca37228dff1c0917440c. Signed-off-by: Anna Shaleva --- .github/workflows/tests.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 743a08453..aac575036 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,8 +14,21 @@ on: jobs: lint: - name: Lint + name: 'Lint: NeoGo' uses: nspcc-dev/.github/.github/workflows/go-linter.yml@master + + lint_examples: + name: 'Lint: examples (${{ matrix.contract }})' + uses: nspcc-dev/.github/.github/workflows/go-linter.yml@master + + strategy: + fail-fast: false + matrix: + contract: [ 'engine', 'events', 'iterator', 'nft-d', 'nft-nd', 'nft-nd-nns', 'oracle', + 'runtime', 'storage', 'timer', 'token', 'zkp/cubic_circuit', 'zkp/xor_compat'] + with: + workdir: examples/${{ matrix.contract }} + gomodcheck: name: Check internal dependencies runs-on: ubuntu-latest