Trying to appease the Inertia version checking #18
Workflow file for this run
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: Build | |
on: [push] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-18.04 | |
strategy: | |
matrix: | |
php: [8.0, 8.1] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Checkout | |
if: github.ref == 'refs/heads/main' | |
run: git checkout "${GITHUB_REF:11}" | |
- name: Setup PHP with PECL extension | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- uses: shogo82148/actions-setup-redis@v1 | |
with: | |
redis-version: '6.x' | |
- run: redis-cli ping | |
- name: Composer Install | |
run: composer install | |
- name: Run Tests | |
run: ./vendor/bin/phpunit | |
- name: Coveralls | |
if: github.ref == 'refs/heads/main' | |
run: ./vendor/bin/php-coveralls -v --coverage_clover build/coverage.xml --json_path build/coveralls-upload.json | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
release: | |
name: Release | |
if: github.ref == 'refs/heads/main' | |
needs: test | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm install | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx semantic-release@18 |