-
-
Notifications
You must be signed in to change notification settings - Fork 124
53 lines (44 loc) · 1.44 KB
/
cloudshop-example.yml
File metadata and controls
53 lines (44 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CloudShop Example Tests
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
integration-tests:
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET 10
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Cache NuGet packages
uses: actions/cache@v5
continue-on-error: true
with:
path: ~/.nuget/packages
key: nuget-cloudshop-${{ hashFiles('examples/CloudShop/**/*.csproj') }}
restore-keys: |
nuget-cloudshop-
- name: Expose GitHub Actions Runtime
uses: actions/github-script@v9
with:
script: |
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN']);
core.exportVariable('ACTIONS_RESULTS_URL', process.env['ACTIONS_RESULTS_URL']);
- name: Build
run: dotnet build examples/CloudShop/CloudShop.Tests/CloudShop.Tests.csproj -c Release
- name: Run integration tests
run: dotnet run --project examples/CloudShop/CloudShop.Tests/CloudShop.Tests.csproj -c Release --no-build
env:
ASPIRE_ALLOW_UNSECURED_TRANSPORT: "true"