-
Notifications
You must be signed in to change notification settings - Fork 17
45 lines (39 loc) · 1.17 KB
/
pragma-tests-ci.yml
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
name: Run Tests
on:
workflow_dispatch:
inputs:
os:
type: choice
options:
- windows
- ubuntu
required: true
jobs:
test:
name: Tests - ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- os: ${{ github.event.inputs.os == 'windows' && 'windows-latest' || 'ubuntu-24.04' }}
steps:
- name: Set Initial Workflow Status
run: |
echo ("WORKFLOW_STATUS=success") >> $env:GITHUB_ENV
- name: Run Tests
uses: Silverlan/pragma/github_actions/run_common_tests@main
with:
import-tests-token: ${{ secrets.PRAGMA_TESTS_IMPORT_TOKEN }}
- name: Set Failure Workflow Status
if: failure()
run: |
echo ("WORKFLOW_STATUS=failure") >> $env:GITHUB_ENV
- uses: LouisBrunner/checks-action@v2.0.0
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
conclusion: ${{ env.WORKFLOW_STATUS }}
name: "Tests - ${{ matrix.config.os }}"
output: |
{"summary":"Test result is '${{ env.WORKFLOW_STATUS }}'. See \"Run Tests\" action for details."}