style: fix code style #10
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| code-style: | |
| name: Code Style | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Install dependencies | |
| uses: php-actions/composer@v6 | |
| with: | |
| php_version: '8.1' | |
| - name: Run Pint | |
| run: ./vendor/bin/pint --test | |
| versioning: | |
| name: Create New Version | |
| needs: [code-style] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Setup Node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 20 | |
| - name: Install Plugins | |
| run: npm i @semantic-release/changelog @semantic-release/git @semantic-release/exec -D | |
| - name: Create Release | |
| run: npx semantic-release@^20.1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |