Repository navigation
58 lines (49 loc) · 1.91 KB
/
Copy pathtest.yml
File metadata and controls
58 lines (49 loc) · 1.91 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
54
55
56
57
58
name: Pull request
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
concurrency:
group: pull-request-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
pull-request-validation:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04-arm
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
with:
lfs: true
- name: Validate platform
uses: ./.github/actions/validate-platform
with:
runtime: linux-arm64
full-solution: 'true'
# Runs beside the validation instead of after it. The browser test that relinks the runtime needs the wasm-tools workload and
# skips here; it runs on the Ubuntu package-consumer lane after the merge, where the other platforms are covered as well.
# The tests run one at a time, so two jobs share them through PIXELY_PACKAGE_TEST_SHARD; each job packs Pixely itself.
package-integration:
if: github.event.pull_request.draft == false
name: package-integration (${{ matrix.shard }}/2)
runs-on: ubuntu-24.04-arm
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
shard: [1, 2]
steps:
- uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: '11.0.x'
dotnet-quality: 'preview'
- name: Build package integration tests
run: dotnet build tests/Pixely.Package.Tests/Pixely.Package.Tests.csproj -p:TreatWarningsAsErrors=true
- name: Run package integration tests against the repository build
run: dotnet test tests/Pixely.Package.Tests/Pixely.Package.Tests.csproj --no-build --filter 'TestCategory=PackageIntegration' --logger 'console;verbosity=normal' -p:TreatWarningsAsErrors=true
env:
PIXELY_PACKAGE_TEST_SHARD: ${{ matrix.shard }}/2