bump version #184
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
name: testing-defaults-template-job | |
on: [push] | |
jobs: | |
check-defaults: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
run: | | |
pip install --upgrade pip | |
pip install copier==7.2.0 pydantic==1.10.13 | |
- name: Check Defaults | |
run: copier --defaults copy "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" ./template-test-path | |
list-scenarios: | |
outputs: | |
scenario-list: ${{ steps.liststep.outputs.listoutput }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: List | |
id: liststep | |
run: | | |
SCENARIOS="$(ls .github/scenarios | python -c 'import json; import sys; print(json.dumps(sys.stdin.read().strip().split()))')" | |
echo "::set-output name=listoutput::$SCENARIOS" | |
# todo fix it | |
# check-scenarios: | |
# strategy: | |
# matrix: | |
# scenario: ${{ fromJSON(needs.list-scenarios.outputs.scenario-list) }} | |
# needs: | |
# - check-defaults | |
# - list-scenarios | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# - name: Setup | |
# run: | | |
# pip install --upgrade pip | |
# pip install copier | |
# - name: Check scenario ${{ matrix.scenario }} | |
# run: | | |
# ANSWERS="$(cat .github/scenarios/${{ matrix.scenario }} | python .github/parser.py)" | |
# readarray -t ANSWERS_ARRAY < <(echo "$ANSWERS") | |
# copier "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" ./template-test-path "${ANSWERS_ARRAY[@]}" |