Skip to content

Commit

Permalink
chore: tidying workflows + add sherif workflow (nuxt#28793)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Sep 2, 2024
1 parent 9579bcc commit 5d4d601
Show file tree
Hide file tree
Showing 17 changed files with 138 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check links with Lychee
name: docs

on:
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Deploy docs
name: docs

on:
push:
paths:
- "docs/**"
branches:
- main
- 3.x

# Remove default permissions of GITHUB_TOKEN for security
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docs
name: docs

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Label PR
name: chore

on:
pull_request_target:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/lint-sherif.yml
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
17 changes: 0 additions & 17 deletions .github/workflows/reproduire-sur-stackblitz.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/reproduire.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Reproduire
name: chore
on:
issues:
types: [labeled]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: Scorecard supply-chain security
name: ossf
on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/semantic-pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Semantic pull request
name: chore

on:
pull_request_target:
Expand All @@ -11,7 +11,7 @@ permissions:
contents: read

jobs:
main:
semantic-pr:
permissions:
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
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/stackblitz-link.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
reproduction-heading: '### Reproduction'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Close incomplete issues
name: chore
on:
workflow_dispatch:
schedule:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"playwright-core": "1.46.1",
"rimraf": "6.0.1",
"semver": "7.6.3",
"sherif": "1.0.0",
"std-env": "3.7.0",
"tinyexec": "0.3.0",
"tinyglobby": "0.2.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"compatx": "^0.1.8",
"consola": "^3.2.3",
"cookie-es": "^1.2.2",
"impound": "^0.1.0",
"defu": "^6.1.4",
"destr": "^2.0.3",
"devalue": "^5.0.0",
Expand All @@ -87,6 +86,7 @@
"h3": "npm:[email protected]",
"hookable": "^5.5.3",
"ignore": "^5.3.2",
"impound": "^0.1.0",
"jiti": "^2.0.0-beta.3",
"klona": "^2.0.6",
"knitwork": "^1.1.0",
Expand Down
66 changes: 66 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
packages:
- "packages/**"
- "!packages/nuxi"
- "!packages/test-utils"
- "playground"
- "test/fixtures/*"
5 changes: 5 additions & 0 deletions test/fixtures/remote-provider/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "remote-provider",
"version": "0.0.0",
"private": true
}

0 comments on commit 5d4d601

Please sign in to comment.