Update CI workflows to use setup actions: replace container definitions with setup-dotnet and setup-node actions for backend and frontend jobs, ensuring consistent environment configuration for builds and tests.
This commit is contained in:
@@ -8,9 +8,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
backend:
|
backend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: mcr.microsoft.com/dotnet/sdk:10.0
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: 10.0.x
|
||||||
- name: Restore
|
- name: Restore
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
run: dotnet restore TeleWave.slnx
|
run: dotnet restore TeleWave.slnx
|
||||||
@@ -20,9 +22,11 @@ jobs:
|
|||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:22
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
- name: Enable pnpm
|
- name: Enable pnpm
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
- name: Install
|
- name: Install
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
backend-tests:
|
backend-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: mcr.microsoft.com/dotnet/sdk:10.0
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: 10.0.x
|
||||||
- name: Restore
|
- name: Restore
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
run: dotnet restore TeleWave.slnx
|
run: dotnet restore TeleWave.slnx
|
||||||
|
|||||||
Reference in New Issue
Block a user