Skip to content

Commit

Permalink
ci: don't to install .net, use from container
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicGD committed Jan 10, 2022
1 parent cb3ce4e commit 0559d5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 151 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ jobs:
cache: 'npm'
cache-dependency-path: |
src/Sitko.Core.Blazor.AntDesign/Web/package.json
- name: Install .NET
uses: actions/[email protected]
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
- name: Build blazor js
working-directory: src/${{ env.FRONTNED_PROJECT }}/Web
shell: bash
Expand Down
141 changes: 4 additions & 137 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,28 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/sitkoru/actions-container
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install .NET
uses: actions/[email protected]
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
- name: Build
run: dotnet build -c Release
- name: Create packages
run: dotnet pack -c Release -o $(pwd)/packages
apps:
runs-on: ubuntu-latest
container: ghcr.io/sitkoru/actions-container
steps:
- uses: actions/[email protected]
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.App.Tests/Sitko.Core.App.Tests.csproj

blazor:
runs-on: ubuntu-latest
container: ghcr.io/sitkoru/actions-container
steps:
- uses: actions/[email protected]
- name: Install node.js
Expand All @@ -63,41 +46,16 @@ jobs:
run: |
npm ci
npm run prod
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
run: dotnet test --logger GitHubActions tests/Sitko.Core.App.Blazor.Tests/Sitko.Core.App.Blazor.Tests.csproj

grpc:
runs-on: ubuntu-latest
container: ghcr.io/sitkoru/actions-container
steps:
- uses: actions/[email protected]
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
Expand All @@ -108,19 +66,6 @@ jobs:
container: ghcr.io/sitkoru/actions-container
steps:
- uses: actions/[email protected]
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
Expand All @@ -137,19 +82,6 @@ jobs:
run: |
apt-get update
apt-get install -y google-chrome-stable
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
Expand All @@ -166,19 +98,6 @@ jobs:
image: nats-streaming:latest
steps:
- uses: actions/[email protected]
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests Sitko.Core.Queue
Expand All @@ -202,19 +121,6 @@ jobs:
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- uses: actions/[email protected]
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
Expand All @@ -230,19 +136,6 @@ jobs:
image: titpetric/sonyflake
steps:
- uses: actions/[email protected]
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Run tests
Expand Down Expand Up @@ -270,19 +163,6 @@ jobs:
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- uses: actions/[email protected]
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Add Github Actions logger
run: dotnet add src/Sitko.Core.Xunit/Sitko.Core.Xunit.csproj package GitHubActionsTestLogger
- name: Sitko.Core.Storage.FileSystem
Expand All @@ -306,19 +186,6 @@ jobs:
image: titpetric/sonyflake
steps:
- uses: actions/[email protected]
- name: Install .NET Core 3.1
uses: actions/[email protected]
with:
dotnet-version: '3.1.x'
- name: Install .NET 5.0.x
uses: actions/[email protected]
with:
dotnet-version: '5.0.x'
- name: Install .NET 6.0.x
uses: actions/[email protected]
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Install Vault
run: |
curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add -
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo ::set-output name=version::${VERSION}
- name: Install .NET
uses: actions/[email protected]
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
- name: Install node.js
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 0559d5e

Please sign in to comment.