-
Notifications
You must be signed in to change notification settings - Fork 582
39 lines (33 loc) · 1.05 KB
/
check-alloy-mixin-rendered.yml
File metadata and controls
39 lines (33 loc) · 1.05 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
name: Test Alloy mixin
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
check-rendered:
name: Render and test Alloy mixin
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version-file: go.mod
cache: true
- name: Render and test Alloy mixin
run: make test-mixin
- name: Verify rendered mixin is up-to-date in the repository
run: |
if [ -n "$(git status --porcelain -- operations/alloy-mixin/rendered)" ]; then
echo "Error: rendered outputs are not up to date. Make sure to run 'make generate-rendered-mixin' and commit the changes."
git status -- operations/alloy-mixin/rendered
git diff -- operations/alloy-mixin/rendered
exit 1
fi