From d07853e9efe9c198028062f5a7f36779f0f98338 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 12 Apr 2022 19:29:52 -0400 Subject: [PATCH] fix anchor-init ci and bpf-upgradeable-state package.json (#1781) --- .github/workflows/tests.yaml | 2 +- tests/bpf-upgradeable-state/package.json | 20 ++++++++++++-------- tests/package.json | 3 ++- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3c38a17f..d623106c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -327,7 +327,7 @@ jobs: path: ~/.cargo/bin/ - run: chmod +x ~/.cargo/bin/anchor - - run: cd "$(mktemp -d)" && anchor init hello-anchor && cd hello-anchor && yarn link @project-serum/anchor && anchor test && yarn lint:fix + - run: cd "$(mktemp -d)" && anchor init hello-anchor && cd hello-anchor && yarn link @project-serum/anchor && yarn && anchor test && yarn lint:fix - uses: ./.github/actions/git-diff/ test-programs: diff --git a/tests/bpf-upgradeable-state/package.json b/tests/bpf-upgradeable-state/package.json index a7dbb8b7..cb43b909 100644 --- a/tests/bpf-upgradeable-state/package.json +++ b/tests/bpf-upgradeable-state/package.json @@ -1,12 +1,16 @@ { - "dependencies": { - "@project-serum/anchor": "^0.24.1" + "name": "bpf-upgradeable-state", + "version": "0.24.0", + "license": "(MIT OR Apache-2.0)", + "homepage": "https://github.com/project-serum/anchor#readme", + "bugs": { + "url": "https://github.com/project-serum/anchor/issues" }, - "devDependencies": { - "chai": "^4.3.4", - "mocha": "^9.0.3", - "ts-mocha": "^8.0.0", - "@types/mocha": "^9.0.0", - "typescript": "^4.3.5" + "repository": { + "type": "git", + "url": "https://github.com/project-serum/anchor.git" + }, + "engines": { + "node": ">=11" } } diff --git a/tests/package.json b/tests/package.json index a55fcef4..edf90aff 100644 --- a/tests/package.json +++ b/tests/package.json @@ -33,7 +33,8 @@ "zero-copy", "declare-id", "cpi-returns", - "multiple-suites" + "multiple-suites", + "bpf-upgradeable-state" ], "dependencies": { "@project-serum/anchor": "file:../ts",