Merge pull request #61 from madewithlove/dependabot/composer/symfony/… #14
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: Verify that main branch is installable and usable | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
install-and-test: | |
name: Check that this is installable and usable | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for a bit before trying to fetch the new version | |
run: sleep 300 | |
- name: Clear composer cache | |
run: composer clear-cache | |
- name: Require this version | |
run: composer require madewithlove/htaccess-cli:dev-${GITHUB_REF##*/}#$GITHUB_SHA --prefer-source | |
- name: Add a very basic htaccess file | |
run: echo "RewriteRule .* /foo" >> .htaccess | |
- name: Run the htaccess tester | |
run: vendor/bin/htaccess http://localhost |