Skip to content

Commit

Permalink
chore(ci): apply some automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ineshbose committed Dec 28, 2023
1 parent 278b2cf commit abc03df
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 7 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
autofix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- run: pnpm install && pnpm dev:prepare
- run: pnpm run lint:fix
- uses: autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
node-version: 20
cache: "pnpm"
- run: pnpm install

- run: pnpm dev:prepare
- run: pnpm lint
- run: pnpm test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
registry-url: "https://registry.npmjs.org/"
cache: "pnpm"

- run: pnpm install
- run: pnpm install && pnpm dev:prepare
- run: pnpm build

- run: pnpm changelogen --bump --canary --publish --publishTag nightly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nuxt2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
with:
node-version: 18
cache: "pnpm"
- run: pnpm install
- run: pnpm install && pnpm dev:prepare
- run: cd nuxt2-playground && pnpm i --ignore-workspace && pnpm build
2 changes: 1 addition & 1 deletion .github/workflows/sink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm install && pnpm dev:prepare
- run: |
cd test/fixtures/nuxt.com && pnpm install --ignore-workspace
- run: pnpm test sink
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"docs:preview": "nuxi preview docs",
"docs:dev": "nuxi dev docs",
"lint": "eslint .",
"lint:fix": "pnpm lint --fix",
"test": "vitest run",
"test:watch": "vitest watch",
"test:types": "pnpm dev:prepare && tsc --noEmit && nuxi typecheck playground"
Expand Down
8 changes: 5 additions & 3 deletions test/sink.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ describe('nuxt.com', async () => {
// was going to use test-utils but gave up trying to set it up properly

beforeAll(() => {
const generateCommand = exec(`cd ${fixturePath} && pnpm generate`);
const generateCommand = exec(`cd ${fixturePath} && pnpm generate`)

// eslint-disable-next-line no-constant-condition
while (true) {
if (existsSync(`${fixturePath}.output/public/index.html`)) {
setTimeout(() => generateCommand.kill(), 5000);
break;
setTimeout(() => generateCommand.kill(), 5000)
break
}
}
})
Expand Down

0 comments on commit abc03df

Please sign in to comment.