Skip to content

feat: add postgres #436

feat: add postgres

feat: add postgres #436

Workflow file for this run

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"