-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (40 loc) · 1001 Bytes
/
test.yaml
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
name: CI - Test Templates
on:
pull_request:
branches:
- main
paths:
- src/**
- test/**
- "!**.md"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
detect-changes:
runs-on: ubuntu-latest
outputs:
templates: ${{ steps.filter.outputs.changes }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
r-ver: ./**/r-ver/**
r2u: ./**/r2u/**
test-detects:
if: ${{ github.event_name == 'pull_request' }}
needs:
- detect-changes
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
templates: ${{ fromJSON(needs.detect-changes.outputs.templates) }}
steps:
- uses: actions/checkout@v3
- name: Smoke test for '${{ matrix.templates }}'
id: smoke_test
uses: ./.github/workflows/actions/smoke-test
with:
template: "${{ matrix.templates }}"