Skip to content

Commit

Permalink
fix: update ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
veritem committed Apr 6, 2022
1 parent 93dbb69 commit a5ef104
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 33 deletions.
39 changes: 10 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,23 @@ jobs:

fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 7.0.0-rc.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: install
run: pnpm install

- name: test
run: pnpm test:ci

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install pnpm
- uses: pnpm/[email protected]
with:
version: 7.0.0-rc.2

- name: Set node
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 17.x
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: install
run: pnpm install

- name: Install
run: pnpm i
- name: lint
run: pnpm lint

- name: Lint
run: pnpm run lint
- name: test
run: pnpm test:ci
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RuleTester } from "@typescript-eslint/utils/dist/ts-eslint"
import { it } from "vitest"
import { RULE_NAME } from "../src/rules/assertion-type"
import { RULE_NAME } from "./assertion-type"


const valid = [`it.each()`]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RuleTester } from "@typescript-eslint/utils/dist/ts-eslint"
import { it } from "vitest"
import rule, { RULE_NAME } from "../src/rules/lower-case-title"
import rule, { RULE_NAME } from "./lower-case-title"



Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RuleTester } from "@typescript-eslint/utils/dist/ts-eslint"
import { it } from "vitest"
import rule, { RULE_NAME } from "../src/rules/no-conditional-in-tests"
import rule, { RULE_NAME } from "./no-conditional-in-tests"

const invalids = [
`describe('my tests', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RuleTester } from "@typescript-eslint/utils/dist/ts-eslint"
import { it } from "vitest"
import rule, { RULE_NAME } from "../src/rules/no-skipped-tests"
import rule, { RULE_NAME } from "./no-skipped-tests"

const valids = [
`it("test", () => {});`,
Expand Down

0 comments on commit a5ef104

Please sign in to comment.