-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.08 KB
/
test-pr.yaml
File metadata and controls
45 lines (40 loc) · 1.08 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
name: "CI - Test Templates"
on:
pull_request:
workflow_dispatch:
jobs:
detect-changes:
runs-on: self-hosted
outputs:
templates: ${{ steps.filter.outputs.changes }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
color: ./**/color/**
hello: ./**/hello/**
deno: ./**/deno/**
test:
needs: [detect-changes]
runs-on: self-hosted
continue-on-error: true
strategy:
matrix:
templates: ${{ fromJSON(needs.detect-changes.outputs.templates) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Smoke test for '${{ matrix.templates }}'
id: smoke_test
uses: ./.github/actions/smoke-test
with:
template: "${{ matrix.templates }}"