This repository contains reusable workflows and composite actions for GitHub Actions in UIC Pharmacy projects. By using these, we reduce repeated code and make our workflows more readable.
Composite actions are used under a job's steps section.
A composite action to help make building your project and publishing a Docker image to ghcr.io a more concise process.
Parses a package.json file and returns the fields you specify.
Will parse all of the components of a semver version string, without using any dependencies.
Sets up a Node.js environment and installs your project's dependencies.
Reusable workflows can be used as an entire job in the jobs section of your workflow.
Just checks out, installs, and builds the project. Useful for a test workflow to make sure a project builds successfully.
Called as: uicpharm/workflows/.github/workflows/build.yml@v1
Checks that the version in your project's package.json file matches the tagged version.
Intended to be used when pushing a tagged version, and is useful as a precautionary step
before publishing a Docker image.
Called as: uicpharm/workflows/.github/workflows/check-version.yml@v1
Dumps all existing contexts to the logs. Just for debugging purposes.
Called as: uicpharm/workflows/.github/workflows/context-dump.yml@v1
Checks out your project, installs dependencies, and runs test and standards scripts,
if they exist.
Called as: uicpharm/workflows/.github/workflows/lint-and-test.yml@v1
This repo is public, so these actions and workflows are reusable by any project. In the future, if we ever develop any reusable workflows or actions that use any logic we do not want exposed to the public, we should create a new repo that can hold those private reusable actions and workflows.