Skip to content

⬆️ Update 👷 GitHub Action codecov/codecov-action to 125fc84 #392

⬆️ Update 👷 GitHub Action codecov/codecov-action to 125fc84

⬆️ Update 👷 GitHub Action codecov/codecov-action to 125fc84 #392

Workflow file for this run

name: Build and Test
on:
pull_request:
types: [synchronize, opened, edited]
push:
branches: [main]
jobs:
build:
permissions:
id-token: write
checks: read
strategy:
matrix:
cfg: [Release, Debug]
os: [ubuntu, macos, windows]
version: ['6.x']
runs-on: ${{ matrix.os }}-latest
env:
DOTNET_NOLOGO: true
steps:
- name: Checkout Repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Setup .NET Core
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: ${{ matrix.version }}
- name: Install Dependencies
run: dotnet restore
- name: Install Tools
run: dotnet tool restore
- name: Check Formatting
run: dotnet format --verify-no-changes
- name: Build Project
run: >-
dotnet build --nologo --no-restore
--configuration ${{ matrix.cfg }}
- name: Run Tests
working-directory: ${{github.workspace}}/Atmosphere.Tests
run: >-
dotnet test --nologo --no-restore
--configuration ${{ matrix.cfg }}
--logger GitHubActions
--property:CoverletOutput=${{github.workspace}}/coverage.opencover.xml
- name: Upload Coverage
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4
with:
files: ${{github.workspace}}/coverage.opencover.xml
use_oidc: true