build(deps): bump Dapper from 2.0.151 to 2.1.15 #2226
Workflow file for this run
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 and test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
jobs: | |
build-and-test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- uses: actions/setup-dotnet@v3.2.0 | |
- uses: actions/setup-node@v3.8.1 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
cache-dependency-path: 'source/Gnomeshade.WebApi/Node/package-lock.json' | |
- name: Cache NuGet packages | |
uses: actions/cache@v3.3.2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
- name: Cache Docker images | |
uses: ScribeMD/docker-cache@0.3.6 | |
with: | |
key: docker-${{ runner.os }}-${{ hashFiles('**/WebserverSetup.cs') }} | |
- run: ./deployment/test.sh | |
env: | |
Admin:Password: ${{ secrets.DEMO_ADMIN_PASSWORD }} | |
Nordigen:SecretId: ${{ secrets.NORDIGEN_SECRET_ID }} | |
Nordigen:SecretKey: ${{ secrets.NORDIGEN_SECRET_KEY }} | |
Serilog:MinimumLevel: Warning | |
- name: Gather Code Coverage | |
uses: codecov/codecov-action@v3.1.4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
build-deb: | |
name: Build debian package | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- uses: actions/setup-dotnet@v3.2.0 | |
- uses: actions/setup-node@v3.8.1 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
cache-dependency-path: 'source/Gnomeshade.WebApi/Node/package-lock.json' | |
- run: echo "BUILD_TAG=-test" | |
- name: Cache NuGet packages | |
uses: actions/cache@v3.3.2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
- name: Publish project | |
id: publish | |
run: deployment/publish.sh "Gnomeshade.WebApi" "linux-x64" "${{ github.run_number }}" "-test" | |
- name: Build debian package | |
run: deployment/debian.sh "${{ steps.publish.outputs.artifact }}" "${{ github.run_number }}" | |
- uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: Gnomeshade.WebApi_linux-x64.deb | |
path: "**/*.deb" | |
ansible: | |
name: Test ansible role | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
needs: build-deb | |
strategy: | |
matrix: | |
distro: | |
- debian10 | |
- debian11 | |
- debian12 | |
- ubuntu2004 | |
- ubuntu2204 | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- uses: actions/download-artifact@v3.0.2 | |
id: download | |
with: | |
name: Gnomeshade.WebApi_linux-x64.deb | |
- run: mv ${{ steps.download.outputs.download-path }}/gnomeshade.deb ./deployment/ansible/gnomeshade/molecule/default/gnomeshade.deb | |
- uses: gofrolist/molecule-action@v2.5.0 | |
with: | |
molecule_working_dir: './deployment/ansible/gnomeshade' | |
env: | |
MOLECULE_DISTRO: ${{ matrix.distro }} | |
docker: | |
name: Test docker container | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- run: ./deployment/test-docker.sh ${{ github.run_number }} ${{ secrets.DEMO_ADMIN_PASSWORD }} | |
resharper: | |
name: Resharper | |
runs-on: ubuntu-latest | |
if: false # Too many false positives, latest versions don't work | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- uses: actions/setup-dotnet@v3.2.0 | |
- uses: actions/setup-node@v3.8.1 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
cache-dependency-path: 'source/Gnomeshade.WebApi/Node/package-lock.json' | |
- name: Cache NuGet packages | |
uses: actions/cache@v3.3.2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
- run: ./deployment/build.sh | |
- name: ReSharper annotations | |
timeout-minutes: 10 | |
uses: VMelnalksnis/resharper-inspect-action@v0.2.5 | |
with: | |
solution: Gnomeshade.sln | |
resharper-version: 2022.3.2 |