From 902c9a4bbadc19e01a3ca63cefdb263549d1d9d1 Mon Sep 17 00:00:00 2001 From: Jen-Chieh Shen Date: Sat, 21 Sep 2024 16:51:59 -0700 Subject: [PATCH] fix: Test Portfile --- .github/workflows/port_check.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/port_check.yml b/.github/workflows/port_check.yml index dc2bdd9a07..0129f223cd 100644 --- a/.github/workflows/port_check.yml +++ b/.github/workflows/port_check.yml @@ -22,15 +22,27 @@ jobs: build: runs-on: macos-latest steps: - - uses: actions/checkout@v4 - - name: Install MacPorts run: | curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci source ./macports-ci install + - uses: actions/checkout@v4 + + - name: Copy Portfile to ~/ + run: | + cp ./macports/Portfile ~/ + + - uses: actions/checkout@v4 + with: + repository: 'macports/macports-ports' + + - name: Copy Portfile from ~/ to target directory + run: | + cp ~/Portfile ./devel/eask-cli/Portfile + - name: Test - working-directory: macports + working-directory: devel/eask-cli/ run: | port lint --nitpick sudo port -vst install