Browse Source

fix anchor-init ci and bpf-upgradeable-state package.json (#1781)

Paul 3 years ago
parent
commit
d07853e9ef
3 changed files with 15 additions and 10 deletions
  1. 1 1
      .github/workflows/tests.yaml
  2. 12 8
      tests/bpf-upgradeable-state/package.json
  3. 2 1
      tests/package.json

+ 1 - 1
.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:

+ 12 - 8
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"
     }
 }

+ 2 - 1
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",