Do you have published the two packages to GitHub Packages registry in the repository, or you just store the source code of them in the repository?
Can you share your repository with us so that we can check more details about the packages and the workflow you have set up.
Looks like, you define the tests in the scripts property of the package.json file. If you want to run the scripts in the Server package, you can try the following steps:
2. Switch the working-directory of the shell to the directory where the package.json file of Server is located, for example execute cd server in your case.
3. Execute the npm-run-script command to run the scripts in the package.json file.
Hope this can help you.