Added some general database tests. #9
This file contains 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: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.x' | |
- name: Install dependencies | |
run: make dep | |
- name: Build | |
run: make build | |
- name: Run tests | |
run: make test_coverage | |
- name: Report test coverage to DeepSource | |
uses: deepsourcelabs/test-coverage-action@master | |
with: | |
key: go | |
coverage-file: cover.out | |
dsn: ${{ secrets.DEEPSOURCE_DSN }} | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libra | |
path: libra |