-
Notifications
You must be signed in to change notification settings - Fork 17
51 lines (43 loc) · 1.22 KB
/
PR-powershell-lts.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
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
name: PowerShell LTS PR
permissions: read-all
on:
push:
paths:
- '.github/workflows/PR-powershell-lts.yml'
- 'Formula/powershell-lts.rb'
branches:
- master
pull_request:
defaults:
run:
shell: pwsh
env:
FORMULA_PATH: ./Formula/powershell-lts.rb
UPDATE_SCRIPT_PATH: ./scripts/Upgrade-Formula.ps1
FORMULA_NAME: powershell-lts
CHANNEL_NAME: lts
HOMEBREW_NO_ENV_HINTS: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
jobs:
homebrew-formula-lts:
timeout-minutes: 15
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check for applicable files
uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
id: filter
with:
filters: |
workflows:
- '.github/workflows/PR-powershell-lts.yml'
- 'Formula/powershell-lts.rb'
- name: Prepare Agent
if: steps.filter.outputs.workflows == 'true'
uses: ./.github/workflows/composite/prep
- name: Install and Test Formula
if: steps.filter.outputs.workflows == 'true'
uses: ./.github/workflows/composite/installAndTest