Repository navigation
Merge pull request #50 from badasswp/release-1.4.2 #240
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: SqlToCpt CI | |
| on: | |
| push: | |
| branches-ignore: | |
| - release-* | |
| permissions: | |
| contents: write | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Node.js 20.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.x | |
| - name: Install NPM | |
| run: | | |
| yarn install | |
| - name: Check JS Linting | |
| run: | | |
| yarn lint:js | |
| - name: Run JS Unit Tests | |
| run: | | |
| yarn test:js | |
| - name: Set up PHP v8.2 | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.2" | |
| - name: Validate Composer | |
| run: | | |
| composer validate --strict | |
| - name: Install Composer | |
| run: | | |
| composer install --prefer-dist --no-progress | |
| - name: Check PHP Linting | |
| run: | | |
| composer run lint | |
| - name: Run PHP Unit Tests | |
| run: | | |
| composer run test |