.github/workflows/nightly.yml: disable scheduled nightly runs on the forked repos User will still be able to run the workflow manually Fixes #1082 Co-authored-by: Guglielmo Colombo <guglielmoc@google.com>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
name: Nightly
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 2 * * *' # 2 AM UTC daily
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
vulncheck:
|
|
# Don't run scheduled builds on forks.
|
|
if: github.event_name != 'schedule' || github.repository == 'modelcontextprotocol/go-sdk'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Run govulncheck
|
|
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4
|
|
with:
|
|
go-version-file: go.mod
|
|
go-package: ./...
|
|
|
|
conformance:
|
|
# Don't run scheduled builds on forks.
|
|
if: github.event_name != 'schedule' || github.repository == 'modelcontextprotocol/go-sdk'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Set up Go
|
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: "^1.26"
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version: "22"
|
|
- name: Run server conformance tests
|
|
run: ./scripts/server-conformance.sh
|