Skip to content

fix: preparing tests using docker #46

fix: preparing tests using docker

fix: preparing tests using docker #46

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: test
on:
pull_request:
branches: [main]
env:
ConnectionStrings__SqlConnection: ${{ secrets.CONNECTIONSTRINGS__SQLCONNECTION }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Prepare Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Prepare Db
run: npm run prepare-test-db
# - name: Docker build
# run: npm run docker:build
# - name: Docker run
# run: npm run docker:run
- name: Test
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./coverage/lcov.info
coverageLocations: ${{github.workspace}}/test/Codibre.GrpcSqlProxy.Test/coverage/lcov.info:lcov
- name: Unload Db
run: npm run unload-test-db