Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: don't fetch test code from Yi's repo #134

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/greenboot-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
echo "User '${{ github.event.sender.login }}' has permission '${{ fromJson(steps.user_permission.outputs.data).permission }}' allowed values: 'admin', 'write'"
echo "allowed_user=true" >> $GITHUB_OUTPUT

- name: Get information for pull request
uses: octokit/[email protected]
id: pr-api
Expand All @@ -45,7 +45,8 @@ jobs:

comment-info:
needs: pr-info
if: ${{ needs.pr-info.outputs.allowed_user == 'true' }}
if: ${{ needs.pr-info.outputs.allowed_user == 'true' &&
needs.pr-info.outputs.base_ref == 'greenboot-rs' }}
runs-on: ubuntu-latest
steps:
- name: PR comment analysis
Expand Down Expand Up @@ -130,6 +131,7 @@ jobs:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
context: ${{ env.STATUS_NAME }}
state: pending
description: 'Running test'
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -211,15 +213,9 @@ jobs:
sudo dnf info osbuild osbuild-composer
working-directory: ./osbuild-composer

- name: Checkout greenboot ci test code
uses: actions/checkout@v3
with:
repository: yih-redhat/greenboot-ci
path: greenboot-ci

- name: Run greenboot-rs.sh test
run: ./greenboot-rs.sh
working-directory: ./greenboot-ci/tests
working-directory: ./tests
timeout-minutes: 100

- name: Set result status
Expand All @@ -232,3 +228,11 @@ jobs:
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: greenboot-rs-39
path: |
./tests/*.json
./tests/*.log
8 changes: 0 additions & 8 deletions tests/ansible.cfg

This file was deleted.

Loading