Skip to content

Commit

Permalink
Merge pull request #4 from dammy001/patch-1
Browse files Browse the repository at this point in the history
chore: improves CI and added lint job
  • Loading branch information
veritem authored Apr 6, 2022
2 parents 9c598ad + a5ef104 commit 16af9bf
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 20 deletions.
45 changes: 29 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,35 @@ name: ci
on:
push:
jobs:
build:
runs-on: ubuntu-20.04
test:
runs-on: ubuntu-latest

timeout-minutes: 10

strategy:
matrix:
node-version: [17]
node-version: [14.x, 17.x]
os: [ubuntu-latest, windows-latest]

fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 7.0.0-rc.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: install
run: pnpm install
- name: test
run: pnpm test:ci
- 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: lint
run: pnpm 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 16af9bf

Please sign in to comment.