fix(sql): use dynamic import instead of require to fix command execution in esm environments #327
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
| on: | |
| pull_request: | |
| types: [synchronize, edited, opened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: self-hosted | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| timeout-minutes: 10 | |
| - name: Lint commit messages | |
| run: yarn commitlint --from $BASE_SHA --to $HEAD_SHA --verbose | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| - name: Lint pull request title | |
| run: echo $PR_TITLE | yarn commitlint --verbose | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} |