GitHub Actions CI workflows for apps built with the KBase SDK
-
Ensure you have a KBase developer token saved as
KBASE_TEST_TOKEN
in your repo or org's GitHub Secrets settings. -
Copy the action.yaml file to your project's
.github/workflows/
directory.
# Skip if directory already exists
mkdir -p .github/workflows
# Add workflow file
curl https://raw.githubusercontent.com/kbaseapps/kb_sdk_actions/master/action.yaml --output .github/workflows/kb_sdk_test.yaml
- Commit the new workflow to your repo.
git add .github/workflows/kb_sdk_test.yaml
git commit -m "Adding Actions workflow for KB SDK tests."
git push
# Push to the branch of your pull request, or push to master if preferred.
git push -u origin master
- You're done! Any future commits and pull requests to your repo's
master
branch will trigger the SDK tests to run.
To review your projet's SDK test status and results, see your repo's Actions tab.