Skip to content

Commit 241e27e

Browse files
committed
convert to composite action instead
Signed-off-by: Nitish Bharambe <nitish.bharambe@alliander.com>
1 parent 38b91a5 commit 241e27e

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <powergridmodel@lfenergy.org>
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
5+
name: Validate formula
6+
description: Audits, installs, and tests the Power Grid Model Homebrew formula
7+
8+
runs:
9+
using: composite
10+
steps:
11+
- name: Validate formula
12+
shell: bash
13+
run: |
14+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
15+
brew tap PowerGridModel/pgm "$(pwd)"
16+
brew trust PowerGridModel/pgm
17+
brew audit --strict power-grid-model
18+
brew install --build-from-source PowerGridModel/pgm/power-grid-model
19+
brew test power-grid-model

.github/workflows/validate-formula.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,4 @@ jobs:
1717
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1818

1919
- name: Validate formula
20-
run: |
21-
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
22-
brew tap PowerGridModel/pgm "$(pwd)"
23-
brew trust PowerGridModel/pgm
24-
brew audit --strict power-grid-model
25-
brew install --build-from-source PowerGridModel/pgm/power-grid-model
26-
brew test power-grid-model
20+
uses: ./.github/actions/validate-formula

0 commit comments

Comments
 (0)