diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..88b82d0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,38 @@ +name: Test Docs + +on: + push: + branches: + - main + - docs-test +jobs: + update-md-files: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: List files for debugging + run: | + ls -R + pwd + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y parallel jq + curl -sL https://get.bacalhau.org/install.sh | bash + + - name: Run script to test docs + run: bash test/docs_test.sh + + - name: Commit and push changes + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add . + git commit -m 'Update markdown files' + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}