Skip to content

build(deps): Bump MSTest.TestAdapter from 3.5.2 to 3.6.0 #553

build(deps): Bump MSTest.TestAdapter from 3.5.2 to 3.6.0

build(deps): Bump MSTest.TestAdapter from 3.5.2 to 3.6.0 #553

Workflow file for this run

name: Dotnet
on:
push:
branches: [ main ]
tags:
- v*
pull_request:
branches: [ main ]
env:
IMAGE_NAME: odataexample
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
dotnet-quality: 'preview'
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-restore --no-build --verbosity normal --collect:"XPlat Code Coverage"
- name: Report Codecov
uses: codecov/codecov-action@v4
codeql:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: csharp
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
dotnet-quality: 'preview'
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
build-docker-test:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
needs: build
steps:
- uses: actions/checkout@v4
- name: Build Image
run: docker build . -t $IMAGE_NAME
build-push-docker:
runs-on: ubuntu-22.04
if: github.event_name == 'push'
needs: build
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: |
bervproject/${{ env.IMAGE_NAME }}
ghcr.io/${{ github.repository }}
- name: Build and push Docker images
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}