-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
38 lines (31 loc) · 979 Bytes
/
action.yml
File metadata and controls
38 lines (31 loc) · 979 Bytes
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
# ====================================================================================
# Action metadata
name: API insights CLI - Brew
author: Treblle
description: Get insights into your OpenAPI specifications and API using the Treblle CLI.
branding:
icon: terminal
color: blue
# ====================================================================================
# Action
on:
pull_request:
branches: [ develop, release, main ]
types: [opened, synchronize]
jobs:
insight:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- name: Set up Homebrew taps
run: |
brew tap treblle/treblle
- name: Install dependencies
run: |
brew install treblle
- name: Run tests
run: treblle-cli insights openapi-spec.json -m 45