Skip to content

MasterOfMalt/Atom.DevOps.GitHubActions

Repository files navigation

Atom.DevOps.GitHubActions

Repository of Atom shared GitHub actions

Actions

Docker Image Build

Docker Image Cache

Docker Image GetTag

Git Normalise Tag

Configuration

Copy 'tests/.env_example' to 'tests/.env' and edit GITHUB_TOKEN to your github personal access token.

##################################################################
# GitHub personal access token token (For testing the workflow locally)
export GITHUB_TOKEN='<your github personal access token>'

Testing/Running the GitHub workflow locally

You can run, or indeed test, the workflow here. This will enable you to both check changes to the workflow or check your code against the workflow prior to pushing. This will help you assess if it will pass the checks.

First, install act. See the instruction here: https://github.com/nektos/act#installation

Next, ensure you have the GITHUB_TOKEN configured in your tests/.env as described above. Then execute the following:

cd tests
source .env
./run_act.sh

Here are some generic instruction for testing GitHub workflows locally. See: https://github.com/nektos/act

If you need to use a development version of act

Sometimes we may need a newer or modified version of act.

git clone [email protected]:MasterOfMalt/act.git
git checkout PLOPS-427_fix_act_composite_actions
  • Install it with make install