Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: move node-validation to seprate file #584

Merged
merged 1 commit into from Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/workflows/ci.yml
Expand Up @@ -116,36 +116,6 @@ jobs:
- name: Run Test
run: pnpm test

node-validation:
name: Node Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Oxc Lint
run: pnpm lint-code

- name: Lint Filename
run: pnpm lint-filename

- name: Format Check
run: pnpm format:ci

- name: Lint Spell
run: pnpm lint-spell

# changesets:
# name: Changesets Status
# runs-on: ubuntu-latest
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/lint-check.yml
@@ -0,0 +1,40 @@
name: Lint code

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
push:
branches:
- main

jobs:
node-validation:
name: Node Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Oxc Lint
run: pnpm lint-code

- name: Lint Filename
run: pnpm lint-filename

- name: Format Check
run: pnpm format:ci

- name: Lint Spell
run: pnpm lint-spell