Merge pull request #6 from bvzrays/ci/use-host-go-version
ci: derive market workflow Go version from host
This commit is contained in:
2 files changed
+26
-11
No files matched your search
@@ -3,6 +3,7 @@ name: PR Plugin Gate
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/**'
|
||||
- 'registry.json'
|
||||
- 'withdrawn.json'
|
||||
- 'scripts/**'
|
||||
@@ -30,17 +31,24 @@ jobs:
|
||||
count=$(node -e "const r = JSON.parse(require('fs').readFileSync('registry.json','utf8')); console.log((r.plugins||[]).length)")
|
||||
echo "count=$count" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Setup Go for reims-go doctor CLI
|
||||
- name: Checkout Reims-Go CLI source
|
||||
if: steps.reg.outputs.count != '0'
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: Nwflower/Reims-Go
|
||||
ref: main
|
||||
path: reims-go
|
||||
|
||||
- name: Setup Go from Reims-Go go.mod
|
||||
if: steps.reg.outputs.count != '0'
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24'
|
||||
go-version-file: reims-go/go.mod
|
||||
|
||||
- name: Build headless reims-go CLI from Nwflower/Reims-Go
|
||||
- name: Build headless reims-go CLI
|
||||
if: steps.reg.outputs.count != '0'
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/Nwflower/Reims-Go.git /tmp/reims-go-src
|
||||
cd /tmp/reims-go-src
|
||||
cd reims-go
|
||||
mkdir -p cmd/reims-doctor
|
||||
cat <<'EOF' > cmd/reims-doctor/main.go
|
||||
package main
|
||||
@@ -69,7 +77,7 @@ jobs:
|
||||
node scripts/build-index.mjs --check $extra --report pr-report.md
|
||||
|
||||
- name: Post gate report comment on PR
|
||||
if: always() && hashFiles('pr-report.md') != ''
|
||||
if: always() && hashFiles('pr-report.md') != '' && github.event.pull_request.head.repo.full_name == github.repository
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
|
||||
@@ -36,17 +36,24 @@ jobs:
|
||||
count=$(node -e "const r = JSON.parse(require('fs').readFileSync('registry.json','utf8')); console.log((r.plugins||[]).length)")
|
||||
echo "count=$count" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Setup Go for reims-go doctor CLI
|
||||
- name: Checkout Reims-Go CLI source
|
||||
if: steps.reg.outputs.count != '0'
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: Nwflower/Reims-Go
|
||||
ref: main
|
||||
path: reims-go
|
||||
|
||||
- name: Setup Go from Reims-Go go.mod
|
||||
if: steps.reg.outputs.count != '0'
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24'
|
||||
go-version-file: reims-go/go.mod
|
||||
|
||||
- name: Build headless reims-go CLI from Nwflower/Reims-Go
|
||||
- name: Build headless reims-go CLI
|
||||
if: steps.reg.outputs.count != '0'
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/Nwflower/Reims-Go.git /tmp/reims-go-src
|
||||
cd /tmp/reims-go-src
|
||||
cd reims-go
|
||||
mkdir -p cmd/reims-doctor
|
||||
cat <<'EOF' > cmd/reims-doctor/main.go
|
||||
package main
|
||||
|
||||
Reference in new issue
Block a user