Skip to content

Commit

Permalink
fixing ci/cd build pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaosEngine committed Jan 6, 2025
1 parent 1f18368 commit f0c7555
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 24 deletions.
34 changes: 16 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
jobs:
all-tests:
docker:
- image: mcr.microsoft.com/playwright:next
- image: mcr.microsoft.com/playwright:latest
# Steps to the job
steps:
- checkout
Expand All @@ -14,12 +14,11 @@ jobs:
git submodule update --init --recursive --jobs 8
- run:
name: Install framework
# should be 20.04 but...whatever
command: |
curl -O https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
apt update && apt install -y dotnet-sdk-8.0
corepack enable
apt update; apt install software-properties-common -y
add-apt-repository ppa:dotnet/backports -y
apt update && apt install -y dotnet-sdk-9.0
corepack enable; corepack install -g pnpm
- run:
name: Show versions
command: |
Expand Down Expand Up @@ -62,7 +61,7 @@ jobs:

Pomelo-tests:
docker:
- image: mcr.microsoft.com/dotnet/sdk:8.0
- image: mcr.microsoft.com/dotnet/sdk:9.0
# Steps to the job
steps:
- checkout
Expand Down Expand Up @@ -102,7 +101,7 @@ jobs:

InkBall-tests:
docker:
- image: mcr.microsoft.com/dotnet/sdk:8.0
- image: mcr.microsoft.com/dotnet/sdk:9.0
# Steps to the job
steps:
- checkout
Expand Down Expand Up @@ -142,7 +141,7 @@ jobs:

DotnetPlayground-tests:
docker:
- image: mcr.microsoft.com/dotnet/sdk:8.0
- image: mcr.microsoft.com/dotnet/sdk:9.0
# Steps to the job
steps:
- checkout
Expand Down Expand Up @@ -182,7 +181,7 @@ jobs:

Playwright-tests:
docker:
- image: mcr.microsoft.com/playwright:next
- image: mcr.microsoft.com/playwright:latest
# Steps to the job
steps:
- checkout
Expand All @@ -193,12 +192,11 @@ jobs:
git submodule update --init --recursive --jobs 8
- run:
name: Install framework
# should be 20.04 but...whatever
command: |
curl -O https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
apt update && apt install -y dotnet-sdk-8.0
corepack enable
apt update; apt install software-properties-common -y
add-apt-repository ppa:dotnet/backports -y
apt update && apt install -y dotnet-sdk-9.0
corepack enable; corepack install -g pnpm
- run:
name: Show versions
command: |
Expand All @@ -225,7 +223,7 @@ jobs:

build:
docker:
- image: mcr.microsoft.com/dotnet/sdk:8.0
- image: mcr.microsoft.com/dotnet/sdk:9.0
# Steps to the job
steps:
- checkout
Expand All @@ -240,9 +238,9 @@ jobs:
command: |
curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh
chmod 500 nsolid_setup_deb.sh
./nsolid_setup_deb.sh 20
./nsolid_setup_deb.sh 21
apt-get install -y nodejs
corepack enable
corepack enable; corepack install -g pnpm
- run:
name: "Build Application according to some given configuration"
command: dotnet publish -c Release --self-contained -r linux-x64 DotnetPlayground.Web
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
dotnet-version: '9.x'

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Build with dotnet
env:
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2
run: dotnet build --configuration Release
- name: Test with dotnet
env:
DBKind: "sqlite"
ConnectionStrings__Sqlite: "Filename=./bin/Debug/net8.0/Blogging.db"
ConnectionStrings__Sqlite: "Filename=./bin/Debug/net9.0/Blogging.db"
DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2
run: dotnet test -v m --configuration Debug
2 changes: 1 addition & 1 deletion Caching-MySQL
Submodule Caching-MySQL updated 1 files
+1 −1 .travis.yml
2 changes: 1 addition & 1 deletion IdentityManager2
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.0",
"version": "9.0.0",
"rollForward": "latestMajor"
},
"projects": [ "DotnetPlayground.Web", "DotnetPlayground.Tests", "Caching-MySQL", "InkBall", "IdentityManager2" ]
Expand Down

0 comments on commit f0c7555

Please sign in to comment.