updated samples

هذا الالتزام موجود في:
Chris Ayers
2022-07-06 16:54:09 -04:00
الأصل e3ab43c8c0
التزام 76de084efc
6 ملفات معدلة مع 15 إضافات و13 حذوفات

عرض الملف

@@ -23,7 +23,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Runs a single command using the runners shell # Runs a single command using the runners shell
- name: Run a one-line script - name: Hello Job1
run: echo Hello from job1 run: echo Hello from job1
job2: job2:
# The type of runner that the job will run on # The type of runner that the job will run on
@@ -32,7 +32,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Runs a single command using the runners shell # Runs a single command using the runners shell
- name: Run a one-line script - name: Hello Job2
run: echo Hello from job2 run: echo Hello from job2
job3: job3:
# The type of runner that the job will run on # The type of runner that the job will run on
@@ -41,5 +41,5 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Runs a single command using the runners shell # Runs a single command using the runners shell
- name: Run a one-line script - name: Hello Job3
run: echo Hello from job3 run: echo Hello from job3

عرض الملف

@@ -17,8 +17,8 @@ env:
formatting: ${{ format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat') }} formatting: ${{ format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat') }}
endsWith: ${{ endsWith('Hello world', 'ld') }} endsWith: ${{ endsWith('Hello world', 'ld') }}
containsString: ${{ contains('Hello world', 'llo') }} containsString: ${{ contains('Hello world', 'llo') }}
containsArray: ${{ contains(fromJson('["Chris","Michael","Mauro"]'), 'chris') }} containsArray: ${{ contains(fromJson('["Chris","Michael"]'), 'chris') }}
presentersString: ${{ join(fromJson('["Chris","Michael","Mauro"]'), ', ') }} presentersString: ${{ join(fromJson('["Chris","Michael"]'), ', ') }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:

عرض الملف

@@ -8,12 +8,10 @@ on:
push: push:
branches: [ main ] branches: [ main ]
paths: paths:
- '!**'
- 'node-example/**' - 'node-example/**'
pull_request: pull_request:
branches: [ main ] branches: [ main ]
paths: paths:
- '!**'
- 'node-example/**' - 'node-example/**'
defaults: defaults:

عرض الملف

@@ -36,8 +36,12 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-nuget- ${{ runner.os }}-nuget-
- name: Build with dotnet - name: Restore dependencies
run: dotnet build --configuration Release run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: dotnet publish - name: dotnet publish
run: dotnet publish -c Release -o ./webapp run: dotnet publish -c Release -o ./webapp

عرض الملف

@@ -5,12 +5,10 @@ on:
push: push:
branches: [ main ] branches: [ main ]
paths: paths:
- '!**'
- 'container-example/**' - 'container-example/**'
pull_request: pull_request:
branches: [ main ] branches: [ main ]
paths: paths:
- '!**'
- 'container-example/**' - 'container-example/**'
defaults: defaults:
@@ -35,4 +33,6 @@ jobs:
with: with:
context: container-example context: container-example
push: true push: true
tags: ${{ secrets.DOCKER_USERNAME }}/static-site:latest tags: |
${{ secrets.DOCKER_USERNAME }}/static-site:latest
${{ secrets.DOCKER_USERNAME }}/static-site:${{ env.GITHUB_REV }}

عرض الملف

@@ -1,6 +1,6 @@
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
var app = builder.Build(); var app = builder.Build();
app.MapGet("/", () => "Hello FTA Live!"); app.MapGet("/", () => "Hello Cincinnati Software Craftsmanship!");
app.Run(); app.Run();