chore: tidying workflows + add sherif workflow (#28793)

This commit is contained in:
Daniel Roe 2024-09-02 22:03:47 +01:00 committed by GitHub
parent 9579bccd29
commit 5d4d6013af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 138 additions and 28 deletions

View File

@ -1,4 +1,4 @@
name: Check links with Lychee name: docs
on: on:
pull_request: pull_request:

View File

@ -1,11 +1,11 @@
name: Deploy docs name: docs
on: on:
push: push:
paths: paths:
- "docs/**" - "docs/**"
branches: branches:
- main - 3.x
# Remove default permissions of GITHUB_TOKEN for security # Remove default permissions of GITHUB_TOKEN for security
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

View File

@ -1,4 +1,4 @@
name: Docs name: docs
on: on:
push: push:

View File

@ -1,4 +1,4 @@
name: Label PR name: chore
on: on:
pull_request_target: pull_request_target:

36
.github/workflows/lint-sherif.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: CI
on:
push:
paths:
- "**/package.json"
branches:
- main
- 3.x
pull_request:
paths:
- "**/package.json"
branches:
- main
- 3.x
- "!v[0-9]*"
permissions:
contents: read
jobs:
lint-monorepo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: corepack enable
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Lint monorepo
run: pnpm sherif -r multiple-dependency-versions

View File

@ -1,17 +0,0 @@
name: reproduire-sur-stackblitz
on:
issues:
types:
opened
permissions:
issues: write
jobs:
reproduire-sur-stackblitz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: huang-julien/reproduire-sur-stackblitz@v1.0.1
with:
reproduction-heading: '### Reproduction'

View File

@ -1,4 +1,4 @@
name: Reproduire name: chore
on: on:
issues: issues:
types: [labeled] types: [labeled]

View File

@ -2,7 +2,7 @@
# by a third-party and are governed by separate terms of service, privacy # by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation. # policy, and support documentation.
name: Scorecard supply-chain security name: ossf
on: on:
# For Branch-Protection check. Only the default branch is supported. See # For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection

View File

@ -1,4 +1,4 @@
name: Semantic pull request name: chore
on: on:
pull_request_target: pull_request_target:
@ -11,7 +11,7 @@ permissions:
contents: read contents: read
jobs: jobs:
main: semantic-pr:
permissions: permissions:
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR

17
.github/workflows/stackblitz-link.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: chore
on:
issues:
types:
opened
permissions:
issues: write
jobs:
stackblitz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: huang-julien/reproduire-sur-stackblitz@v1.0.1
with:
reproduction-heading: '### Reproduction'

View File

@ -1,4 +1,4 @@
name: Close incomplete issues name: chore
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:

View File

@ -91,6 +91,7 @@
"playwright-core": "1.46.1", "playwright-core": "1.46.1",
"rimraf": "6.0.1", "rimraf": "6.0.1",
"semver": "7.6.3", "semver": "7.6.3",
"sherif": "1.0.0",
"std-env": "3.7.0", "std-env": "3.7.0",
"tinyexec": "0.3.0", "tinyexec": "0.3.0",
"tinyglobby": "0.2.5", "tinyglobby": "0.2.5",

View File

@ -75,7 +75,6 @@
"compatx": "^0.1.8", "compatx": "^0.1.8",
"consola": "^3.2.3", "consola": "^3.2.3",
"cookie-es": "^1.2.2", "cookie-es": "^1.2.2",
"impound": "^0.1.0",
"defu": "^6.1.4", "defu": "^6.1.4",
"destr": "^2.0.3", "destr": "^2.0.3",
"devalue": "^5.0.0", "devalue": "^5.0.0",
@ -87,6 +86,7 @@
"h3": "npm:h3-nightly@2.0.0-1718872656.6765a6e", "h3": "npm:h3-nightly@2.0.0-1718872656.6765a6e",
"hookable": "^5.5.3", "hookable": "^5.5.3",
"ignore": "^5.3.2", "ignore": "^5.3.2",
"impound": "^0.1.0",
"jiti": "^2.0.0-beta.3", "jiti": "^2.0.0-beta.3",
"klona": "^2.0.6", "klona": "^2.0.6",
"knitwork": "^1.1.0", "knitwork": "^1.1.0",

View File

@ -146,6 +146,9 @@ importers:
semver: semver:
specifier: 7.6.3 specifier: 7.6.3
version: 7.6.3 version: 7.6.3
sherif:
specifier: 1.0.0
version: 1.0.0
std-env: std-env:
specifier: 3.7.0 specifier: 3.7.0
version: 3.7.0 version: 3.7.0
@ -1036,6 +1039,8 @@ importers:
specifier: 3.4.38 specifier: 3.4.38
version: 3.4.38(typescript@5.5.4) version: 3.4.38(typescript@5.5.4)
test/fixtures/remote-provider: {}
test/fixtures/runtime-compiler: test/fixtures/runtime-compiler:
dependencies: dependencies:
nuxt: nuxt:
@ -6384,6 +6389,40 @@ packages:
shell-quote@1.8.1: shell-quote@1.8.1:
resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==}
sherif-darwin-arm64@1.0.0:
resolution: {integrity: sha512-BRzDsWGjdZ6JqaDQ0HdcpapfHcnZyN24wUWpnFkljZOH78N+vB4qr+wwhmM7oyePJiO4pZWEoIBvzVT4cn1+3g==}
cpu: [arm64]
os: [darwin]
sherif-darwin-x64@1.0.0:
resolution: {integrity: sha512-forkTw6v2N2sjvDdHGL+MqSPdLc0e7Z0v9BsmSdIKv5kdCPncVn6tRv/4xfAE7q+Xqa2a2bH9EEXppGb4gR3Tw==}
cpu: [x64]
os: [darwin]
sherif-linux-arm64@1.0.0:
resolution: {integrity: sha512-psjD3YupFQtphWbwptM8EnU2jRkS6cnhxdxqJhMG9/yJpGsk99JD4tEmrDq0j/+T9UXZ5g7kXvQZXzocl3J62A==}
cpu: [arm64]
os: [linux]
sherif-linux-x64@1.0.0:
resolution: {integrity: sha512-4VM2Z0xfKOEEkZ2bZppq4PAxP4RYC2eWyUq23Jl/nQFeoPMQpA9IkF51UGzxZT4WZ2kZDFftgyJeB09yPvd1CA==}
cpu: [x64]
os: [linux]
sherif-windows-arm64@1.0.0:
resolution: {integrity: sha512-tSEzytTz3guhKLtdMCKWWru6UtmuCXD+0RsUWcqOMpzPBZZwvSr7OrTc83z8Oabmo8k6SJ5fvQeg33JSthgTqw==}
cpu: [arm64]
os: [win32]
sherif-windows-x64@1.0.0:
resolution: {integrity: sha512-R/KXUHBWVPU9hSlWS+Gea/ogP1h/3q/Dm/quqGrVq+MN/F+fiRsJlU52EAjAJ6G5r/4RsvQddD1ova8MKsffdw==}
cpu: [x64]
os: [win32]
sherif@1.0.0:
resolution: {integrity: sha512-x5gZqXmBT0G6Xnr2N63FwbMjaOikk/mPszl2bl3pnDMMyRi89w1ynAfcdIJpOyqZXW445418zkMIXAkQEfEtHw==}
hasBin: true
shiki@1.1.2: shiki@1.1.2:
resolution: {integrity: sha512-qNzFwTv5uhEDNUIwp7wHjsrffVeLbmOgWnM5mZZhoiz7G2qAUvqVfUzuWfieD45/YAKipzCtdV9SndacKtABow==} resolution: {integrity: sha512-qNzFwTv5uhEDNUIwp7wHjsrffVeLbmOgWnM5mZZhoiz7G2qAUvqVfUzuWfieD45/YAKipzCtdV9SndacKtABow==}
@ -13882,6 +13921,33 @@ snapshots:
shell-quote@1.8.1: {} shell-quote@1.8.1: {}
sherif-darwin-arm64@1.0.0:
optional: true
sherif-darwin-x64@1.0.0:
optional: true
sherif-linux-arm64@1.0.0:
optional: true
sherif-linux-x64@1.0.0:
optional: true
sherif-windows-arm64@1.0.0:
optional: true
sherif-windows-x64@1.0.0:
optional: true
sherif@1.0.0:
optionalDependencies:
sherif-darwin-arm64: 1.0.0
sherif-darwin-x64: 1.0.0
sherif-linux-arm64: 1.0.0
sherif-linux-x64: 1.0.0
sherif-windows-arm64: 1.0.0
sherif-windows-x64: 1.0.0
shiki@1.1.2: shiki@1.1.2:
dependencies: dependencies:
'@shikijs/core': 1.1.2 '@shikijs/core': 1.1.2

View File

@ -1,4 +1,6 @@
packages: packages:
- "packages/**" - "packages/**"
- "!packages/nuxi"
- "!packages/test-utils"
- "playground" - "playground"
- "test/fixtures/*" - "test/fixtures/*"

View File

@ -0,0 +1,5 @@
{
"name": "remote-provider",
"version": "0.0.0",
"private": true
}