-
-
Notifications
You must be signed in to change notification settings - Fork 52
39 lines (36 loc) · 1.16 KB
/
doc-generator.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
name: Comment on Failed Test
on:
pull_request:
push:
branches:
- main
jobs:
spec_doc_generator:
name: Check Generator Templates
runs-on: ubuntu-22.04
steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@cdf26dcd488490c9939e9d4d62cab169c9e4f20d
with:
crystal: "1.12.1"
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Run generator tests
run: crystal spec ./document-generator/spec/*
comment_on_failed_test:
permissions: write-all
name: Check Generator Templates
runs-on: ubuntu-22.04
steps:
- name: Install Crystal
uses: crystal-lang/install-crystal@cdf26dcd488490c9939e9d4d62cab169c9e4f20d
with:
crystal: "1.12.1"
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Run generator tests
run: crystal document-generator/scripts/check_docs.cr
- name: Comment on PR if test failed
if: failure()
uses: exercism/pr-commenter-action@v1.5.1
with:
github-token: ${{github.token}}
config-file: ".github/pr-commenter.yml"