Skip to content

Commit

Permalink
add testing farm github action
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu committed Aug 20, 2024
1 parent 7b042f7 commit 5779327
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/testing-farm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Testing Farm test
on:
pull_request: {}

jobs:
tests:
runs-on: [self-hosted, linux, testing-farm]

steps:
- uses: actions/checkout@v4
- name: get message
run: |
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCy2sAVsmqTZOSp3B/+aNwuLuYil5csev6ezn/jJRHrgwV+bwpgqEuN/72aRwFMXZEZEoYAmsVhTOddH52psbcdY8MvP0jK3x/GYXgjHWbjhFzkn3RL8ZesHr6vHkuofOwobX4+z0jgAV6rUBTxyh8n0AUSL+DK2etBiPoM/LXbTmuc7tMTXNeCWAedmpSnzgl0s2QHZVj/C8BHmW5yzKebCLh1EVKrbChQLhuYe0BV4ozLiUNWSGDbppZQlIcJ1rvNAiFbWPxlF/VMinn6n07TSuq4yhFfrgSfsehZZXLUw+lxUPw1nC2HxJsfMTvVzy4mPjwyFtjKVhLGfNvXxi0RpG+aPsXaCvuBaO5ZGFClFbBxEqcJIRoc8CLQc2n7nN1pxjzu7eiStUm5DwkFnWnGu3+yqxTIPWDtDYRzsdXsSy6HqcD0Qjwvh2p83Lel1qU8zn5dZz7yUkGhoHUdAQu4vvvcaK/B7YLBUKw4ROiWxJ+t6BOBVwlWhkQibMK3n70= lul@lul-mac" \
> ~/.ssh/sshkey.pub
- name: reserve machine from testing farm
shell: bash
env:
TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }}
run: |
echo $TESTING_FARM_API_TOKEN
export TESTING_FARM_API_TOKEN=$TESTING_FARM_API_TOKEN
testing-farm reserve --compose Fedora-Rawhide --arch x86_64 --ssh-public-key ~/.ssh/sshkey.pub --no-autoconnect

0 comments on commit 5779327

Please sign in to comment.