Add timemaster #37
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
# Copyright (C) 2023 Savoir-faire Linux, Inc. | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Ansible Lint Yocto | |
env: | |
WORK_DIR: /tmp/seapath_ci_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.sha }} | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
branches: [main] | |
workflow_call: | |
jobs: | |
ansible-lint: | |
runs-on: self-hosted | |
steps: | |
- name: Initialize sources | |
run: mkdir ${{ env.WORK_DIR }}; cd ${{ env.WORK_DIR }}; | |
git clone -q --depth 1 -b main https://github.com/seapath/ci ci; | |
echo "Sources downloaded successfully"; | |
ci/ansible-lint.sh init; | |
- name: Lint | |
run: cd ${{ env.WORK_DIR }}; | |
ci/ansible-lint.sh lint; | |
- name: Clean | |
if: always() | |
run: rm -rf $WORK_DIR; |