-
-
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@a5ac7e51b41094c92402da3b24376905380afc29
- 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@a5ac7e51b41094c92402da3b24376905380afc29
- name: Run generator tests
run: crystal document-generator/scripts/check_docs.cr
- name: Comment on PR if test failed
if: failure()
uses: exercism/[email protected]
with:
github-token: ${{github.token}}
config-file: ".github/pr-commenter.yml"