Update packages #253
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: Build, Test, coveralls.io | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: devcontainers/[email protected] | |
with: | |
runCmd: dotnet build SqlTest | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
framework: [net6.0, net8.0] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: devcontainers/[email protected] | |
with: | |
runCmd: dotnet test SqlTest.Tests --framework ${{ matrix.framework }} | |
coverage: | |
runs-on: ubuntu-latest | |
env: | |
framework: net8.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Run tests and collect coverage | |
run: dotnet test SqlTest.Tests --framework ${{ env.framework }} --configuration Release -e CollectCoverage=true -e CoverletOutputFormat=lcov | |
- uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./SqlTest.Tests/coverage.${{ env.framework }}.info |