name: Run Tests on: push: paths: - '.github/scripts/**' - '.github/workflows/test.yml' pull_request: paths: - '.github/scripts/**' - '.github/workflows/test.yml' workflow_dispatch: jobs: test: runs-on: ubuntu-latest permissions: contents: read packages: read container: image: ghcr.io/${{ github.repository }}/aur-updater:latest credentials: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} steps: - name: Run tests run: | ls -la git clone https://${{ github.token }}@github.com/${{ github.repository }}.git . git checkout ${{ github.sha }} cd .github/scripts ./run-tests.sh