Skip to content

Commit

Permalink
Update action versions
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
nozzlegear committed May 16, 2024
1 parent df269a1 commit dca3dc0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
jobs:
build:
name: "Build"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
environment: "Build Environment"

steps:
Expand All @@ -27,11 +27,10 @@ jobs:
uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
7.0.x
- name: Build and pack
run: fish .github/scripts/build.fish
Expand All @@ -41,7 +40,7 @@ jobs:
ARTIFACT_DIR: "./artifacts"

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
if-no-files-found: error
Expand All @@ -51,7 +50,7 @@ jobs:
test-windows:
name: "Unit tests (.NET Framework)"
runs-on: "windows-2022"
runs-on: "windows-latest"
needs: build
environment: "Unit test environment"

Expand Down Expand Up @@ -102,20 +101,20 @@ jobs:
&& sudo apt-get -qq install fish parallel
- name: Setup dotnet
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Checkout branch
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Execute unit test script
run: fish .github/scripts/test.fish
shell: bash

- name: Upload test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: core-test-results
path: TestResults
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
jobs:
publish:
name: "Publish release packages"
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
environment: "Release deployment environment"

steps:
Expand All @@ -30,18 +30,17 @@ jobs:
&& sudo apt-get -qq install fish parallel
- name: Setup dotnet
uses: actions/setup-dotnet@v2
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
7.0.x
- name: Install dotnet tools
run: |
dotnet tool install -g dotnet-setversion
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Bump package version
run: setversion -p "${{ inputs.package_version }}" "${{inputs.package_id }}/${{ inputs.package_id }}.csproj"
Expand All @@ -54,7 +53,7 @@ jobs:
ARTIFACT_DIR: "./artifacts"

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifacts
if-no-files-found: error
Expand Down

0 comments on commit dca3dc0

Please sign in to comment.