|
|
@@ -30,26 +30,28 @@ jobs: |
|
|
|
- name: Clone |
|
|
|
uses: actions/checkout@v3 |
|
|
|
|
|
|
|
- name: Check if build should be run |
|
|
|
id: check-build |
|
|
|
run: | |
|
|
|
python "${GITHUB_WORKSPACE}/.github/helper/roulette.py" |
|
|
|
env: |
|
|
|
TYPE: "server" |
|
|
|
PR_NUMBER: ${{ github.event.number }} |
|
|
|
REPO_NAME: ${{ github.repository }} |
|
|
|
|
|
|
|
- name: Setup Python |
|
|
|
if: ${{ steps.check-build.outputs.build == 'strawberry' }} |
|
|
|
uses: "gabrielfalcao/pyenv-action@v10" |
|
|
|
with: |
|
|
|
versions: 3.10:latest, 3.7:latest |
|
|
|
|
|
|
|
- name: Setup Node |
|
|
|
if: ${{ steps.check-build.outputs.build == 'strawberry' }} |
|
|
|
uses: actions/setup-node@v3 |
|
|
|
with: |
|
|
|
node-version: 14 |
|
|
|
check-latest: true |
|
|
|
|
|
|
|
- name: Check if build should be run |
|
|
|
id: check-build |
|
|
|
run: | |
|
|
|
python "${GITHUB_WORKSPACE}/.github/helper/roulette.py" |
|
|
|
env: |
|
|
|
TYPE: "server" |
|
|
|
PR_NUMBER: ${{ github.event.number }} |
|
|
|
REPO_NAME: ${{ github.repository }} |
|
|
|
|
|
|
|
- name: Add to Hosts |
|
|
|
if: ${{ steps.check-build.outputs.build == 'strawberry' }} |
|
|
|
run: echo "127.0.0.1 test_site" | sudo tee -a /etc/hosts |
|
|
|