feat: add postgres #436
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: Continuous Integration | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| - name: Set up Codacy script | |
| run: curl -o get.sh -Ls https://coverage.codacy.com/get.sh | |
| - name: Set up Just | |
| uses: taiki-e/install-action@0f9abeadd7b421a211fafd01ed6005a20d796e1e | |
| with: | |
| tool: just | |
| - name: Run tests with coverage | |
| run: just test | |
| - name: Export commit SHA | |
| run: echo "COMMIT_SHA=${GITHUB_SHA}" >> $GITHUB_ENV | |
| - name: Call just test | |
| run: just benchmark | |
| - name: Upload to Codacy | |
| env: | |
| CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
| COMMIT_SHA: ${{ env.COMMIT_SHA }} | |
| run: bash get.sh report --force-coverage-parser go -r .coverage.pprof --commit-uuid "$COMMIT_SHA" |