Skip to content

⬆️ Update 👷 GitHub Action actions/upload-artifact to b4b15b8 (#163) #443

⬆️ Update 👷 GitHub Action actions/upload-artifact to b4b15b8 (#163)

⬆️ Update 👷 GitHub Action actions/upload-artifact to b4b15b8 (#163) #443

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup .NET Core
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # 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@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
with:
files: ${{github.workspace}}/coverage.opencover.xml
use_oidc: true