Skip to content

Commit

Permalink
ci: Don't test project CI in matrix, do that apart
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed May 24, 2024
1 parent b992fbd commit b9211a0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,16 @@ jobs:
- name: Test project generation and workflow
run: bash tests/test_project.sh

- name: Wait success of generated project's workflow
test-ci:
runs-on: ubuntu-latest
steps:
- name: Generate project, push clean history
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make reset-history
- name: Wait success of generated project's workflow
run: |
cd tests/tmp || exit 1
if ! git remote -v | grep -q pawamoy-testing; then
echo "Origin is not the testing repository, exiting..."
exit 1
fi
echo "Pushing to testing repository..."
git push --tags --force
while true; do
echo "Waiting 5 seconds..."
sleep 5
Expand Down
9 changes: 7 additions & 2 deletions tests/reset_history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
cd tests/tmp || exit 1
rm -rf .git
git init .
git remote add origin [email protected]:pawamoy/pawamoy-testing
if [ -n "${GITHUB_TOKEN}" ]; then
git remote add origin https://pawamoy:${GITHUB_TOKEN}@github.com:pawamoy/pawamoy-testing
else
git remote add origin [email protected]:pawamoy/pawamoy-testing
fi
git add -A
git commit -m "initial commit"
git commit -m "feat: Initial commit"
git tag 0.1.0
git push origin main -f

0 comments on commit b9211a0

Please sign in to comment.