Skip to content

⬆️ Update 👷 GitHub Action codecov/codecov-action to 015f24e #465

⬆️ Update 👷 GitHub Action codecov/codecov-action to 015f24e

⬆️ Update 👷 GitHub Action codecov/codecov-action to 015f24e #465

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup .NET Core
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # 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@015f24e6818733317a2da2edd6290ab26238649a # v5
with:
files: ${{github.workspace}}/coverage.opencover.xml
use_oidc: true