Slide 1

Slide 1 text

GitHub ActionsͰςετͷ݁ՌΛ Θ͔Γ΍͘͢දࣔ͢Δ

Slide 2

Slide 2 text

GitHub ActionsͰςετͷ݁ՌΛΘ͔Γ΍͘͢දࣔ͢Δ • Xcode Result Bundle • σʔλߏ଄ • xcresulttool • GitHub Checks • GitHub Actions • API • ը૾ͷදࣔ • Undocumentedͳ੍ݶࣄ߲ • GitHub Flavored Markdown • ΩϨΠʹදࣔ͢Δίπ

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

https://github.com/kishikawakatsumi/xcresulttool-example/pull/2/checks?check_run_id=3954797886

Slide 5

Slide 5 text

https://github.com/kishikawakatsumi/xcresulttool-example/pull/2/checks?check_run_id=3954797886

Slide 6

Slide 6 text

https://github.com/kishikawakatsumi/xcresulttool-example/pull/2/checks?check_run_id=3954797886

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Xcode result bundle

Slide 9

Slide 9 text

Xcode result bundle

Slide 10

Slide 10 text

$ xcresulttool

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

xcresulttool xcresulttool get --path Example.xcresult [--format json | raw] [--id ID] xcresulttool export --type [file | directory] --path Example.xcresult --output-path ./Out --id ID xcresulttool formatDescription [get] [--format json | text | markdown | typeHierarchy] [--hash]

Slide 13

Slide 13 text

xcresulttool xcresulttool get --path Example.xcresult [--format json | raw] [--id ID] xcresulttool export --type [file | directory] --path Example.xcresult --output-path ./Out --id ID xcresulttool formatDescription [get] [--format json | text | markdown | typeHierarchy] [--hash]

Slide 14

Slide 14 text

xcresulttool xcrun xcresulttool get --path __tests__/data/Example.xcresult --format json

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

xcresulttool xcrun xcresulttool get --path __tests__/data/Example.xcresult --format json \ --id “0~2h6n8a1U7EWQlPI84iSvAot2tGmEw4...QYjQ=="

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

xcresulttool xcresulttool get --path Example.xcresult [--format json | raw] [--id ID] xcresulttool export --type [file | directory] --path Example.xcresult --output-path ./Out --id ID xcresulttool formatDescription [get] [--format json | text | markdown | typeHierarchy] [--hash]

Slide 23

Slide 23 text

xcresulttool xcrun xcresulttool export --path __tests__/data/Example.xcresult \ —id "0~bxJjbddFGu_5klZSLsMwAPnWdsfg1lVn1...W7A==" \ --type file --output-path ./screenshot.png

Slide 24

Slide 24 text

xcresulttool xcresulttool get --path Example.xcresult [--format json | raw] [--id ID] xcresulttool export --type [file | directory] --path Example.xcresult --output-path ./Out --id ID xcresulttool formatDescription [get] [--format json | text | markdown | typeHierarchy] [--hash]

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

GitHub Checks

Slide 27

Slide 27 text

Conclusion Summary Annotations

Slide 28

Slide 28 text

GitHub Checks • GitHub Actions΍֎෦ͷCIαʔϏε͔Βͷ݁ՌΛϑΟʔυόοΫͰ͖Δ • Pull Requestͷը໘ʹλϒ͕͋ΔͷͰΞΫηε͠΍͍͢ • εςʔλεʢ੒ޭɾࣦഊʣ͚ͩͰͳ͘ɺϩά΍ը૾ɺΞϊςʔγϣϯͳͲϦο νͳ৘ใΛදࣔͰ͖Δ • ChecksΛߋ৽Ͱ͖Δͷ͸GitHub AppsʹݶΔ͕ɺGitHub Actions͸Appѻ͍ʹ ͳ͍ͬͯΔͷͰߋ৽Ͱ͖Δ

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

ը૾ͷදࣔ

Slide 31

Slide 31 text

ը૾ͷදࣔ

Slide 32

Slide 32 text

ը૾ͷදࣔ

Slide 33

Slide 33 text

੍ݶࣄ߲ • APIͷ֤߲໨ʹ౉ͤΔจࣈ਺͸࠷େ65535จࣈ • Ξϊςʔγϣϯ͸50ݸ·Ͱ

Slide 34

Slide 34 text

GitHub Flavored MarkdownͰ ΩϨΠʹϨΠΞ΢τ͢Δ

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

ςʔϒϧͰϨΠΞ΢τ͢Δ

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

·ͱΊ • GitHub Checks͸PRͷը໘͔ΒΞΫηε͠΍͍͢ • CIͷ݁ՌͰඞཁͳ΋ͷΛ͍Ζ͍Ζදࣔ͢Δͱศར • MarkdownʢʴHTMLʣ͕࢖͑ΔͷͰϦονͳදࣔ΋Մೳ

Slide 42

Slide 42 text

References • https://github.com/kishikawakatsumi/xcresulttool • https://github.com/kishikawakatsumi/bitrise-step-xcode-result-bundle-to-checks • https://github.com/ChargePoint/xcparse • https://engineering.mercari.com/blog/entry/20201218-61f7110851/