Skip to content

Commit

Permalink
Merge branch 'main' into dotnet8-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
psmulovics committed Mar 4, 2024
2 parents 682bf21 + feb55ab commit e704c32
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 85 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,23 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "monthly"

- package-ecosystem: npm
directory: /site
schedule:
interval: "monthly"
groups:
gatsby:
patterns:
- "*gatsby*/*"
- "*/*gatsby*"
- "gatsby*"

- package-ecosystem: github-actions
directory: /
schedule:
interval: "monthly"
groups:
artifact-actions:
patterns:
- "actions/*-artifact*" # Upload/Download usually need to be updated together
11 changes: 7 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ on:
branches: [main]
workflow_call:

permissions:
contents: read

jobs:
build:
strategy:
matrix:
os: [windows-2022, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0
with:
dotnet-version: |
8.0.x
Expand All @@ -31,15 +34,15 @@ jobs:
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal -p:CollectCoverage=true -p:CoverletOutputFormat=opencover
- name: Upload Test Report to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
with:
files: ./test/Crossroads.Test/coverage.opencover.xml, ./test/Crossroads.Launcher.Test/coverage.opencover.xml
flags: unittests
fail_ci_if_error: true
- name: Pack
run: dotnet pack ./src/Crossroads/Crossroads.csproj --no-build --configuration Release --output package
- name: Package published artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: package
path: package/*.nupkg
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: 18
cache: 'npm'
cache-dependency-path: './site/package-lock.json'
- run: npm ci
- run: npm run build
- name: Deploy
uses: crazy-max/ghaction-github-pages@v3
uses: crazy-max/ghaction-github-pages@5859b4ea7efe6b470a5b19c570460eae9323aefc # v3.2.0
with:
target_branch: gh-pages
build_dir: docs
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ defaults:
run:
working-directory: ./site

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: 18
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v2
ses: actions/download-artifact@cbed621e49e4c01b044d60f6c80ea4ed6328b281 # v2.1.1
with:
name: package
path: ./package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: false
publish_results: true

# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
Expand Down
8 changes: 4 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
</PropertyGroup>

<PropertyGroup Label="Dependencies from crossroads and Launcher">
<MicrosoftExtensionsHostingVersion>7.0.1</MicrosoftExtensionsHostingVersion>
<MicrosoftExtensionsConfigurationVersion>7.0.0</MicrosoftExtensionsConfigurationVersion>
<MicrosoftExtensionsHostingVersion>8.0.0</MicrosoftExtensionsHostingVersion>
<MicrosoftExtensionsConfigurationVersion>8.0.0</MicrosoftExtensionsConfigurationVersion>
<SystemCommandLineHostingVersion>0.3.0-alpha.21216.1</SystemCommandLineHostingVersion>
<TestableIOSystemIOAbstractionsWrappersVersion>19.2.69</TestableIOSystemIOAbstractionsWrappersVersion>
<MicrosoftCodeAnalysisCSharpVersion>4.7.0</MicrosoftCodeAnalysisCSharpVersion>
Expand All @@ -17,11 +17,11 @@
</PropertyGroup>

<PropertyGroup Label="Dependencies from Test">
<CoverletMsBuildVersion>6.0.0</CoverletMsBuildVersion>
<CoverletMsBuildVersion>6.0.1</CoverletMsBuildVersion>
<MicrosoftNETTestSdkVersion>17.8.0</MicrosoftNETTestSdkVersion>
<XunitVersion>2.7.0</XunitVersion>
<XunitRunnerVisualStudioVersion>2.5.7</XunitRunnerVisualStudioVersion>
<MoqVersion>4.20.69</MoqVersion>
<MoqVersion>4.20.70</MoqVersion>
<TestableIOSystemIOAbstractionsTestingHelpersVersion>20.0.15</TestableIOSystemIOAbstractionsTestingHelpersVersion>
<CoverletCollector>3.2.0</CoverletCollector>
</PropertyGroup>
Expand Down
Loading

0 comments on commit e704c32

Please sign in to comment.