Adding documentation for re-usable workflows #163
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is for testing the code-sanitizer script | |
name: code-sanitizer-test | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the main branch | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/[email protected] | |
# Runs a set of commands using the runners shell | |
- name: Invoke run_test | |
run: | | |
if [ -f "code-sanitizer/test/run_test.sh" ]; then | |
cd code-sanitizer | |
bash test/run_test.sh | |
fi |