Update main_test.go #15
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: 'Test' | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write # Required for actions/upload-pages-artifact | |
pages: write # Required for actions/deploy-pages | |
id-token: write # Required for actions/deploy-pages | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start Database | |
run: | | |
docker-compose up -d | |
- name: 'Report Coverage' | |
uses: sonichigo/get-cov@main | |
with: | |
coverage-file: test-file | |
coverage-threshold: 65 | |
token: ${{ secrets.GITHUB_TOKEN }} |