devops-exercises/.github/workflows/ci_workflow.yml

25 lines
690 B
YAML
Raw Normal View History

name: CI
on:
# Triggers the workflow on pull request events for the main and devel branch
pull_request:
branches: [ main, devel ]
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# Contains a single job called "ci"
ci:
runs-on: ubuntu-latest
steps:
# Checks out repository under $GITHUB_WORKSPACE, so job can access it
- uses: actions/checkout@v2
- name: Install flake8
run: sudo apt install flake8
- name: Give executable permissions to the script
run: chmod a+x scripts/run_ci.sh
- name: Run the ci script in scripts folder
run: sh scripts/run_ci.sh
shell: bash