Skip to content

Commit 9249f53

Browse files
committed
ci: some cleanup and simplification
1 parent 802d257 commit 9249f53

File tree

4 files changed

+58
-74
lines changed

4 files changed

+58
-74
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
check:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
check:
17+
- format
18+
- lint
19+
- type
20+
name: Check ${{ matrix.check }}
21+
runs-on: ubuntu-latest
22+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
- name: Set up Node
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: 18
30+
cache: yarn
31+
- name: Install
32+
run: yarn install --immutable
33+
- name: Check
34+
run: yarn check:${{ matrix.check }}
35+
36+
test:
37+
name: Test
38+
runs-on: ubuntu-latest
39+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v3
43+
- name: Set up Node
44+
uses: actions/setup-node@v3
45+
with:
46+
node-version: 18
47+
cache: yarn
48+
- name: Install
49+
run: yarn install --immutable
50+
- name: Test
51+
run: yarn test

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'CodeQL analysis'
1+
name: CodeQL analysis
22

33
on:
44
push:

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,17 @@
9191
"access": "public"
9292
},
9393
"scripts": {
94-
"gendocs": "typedoc --options typedoc.js src/",
95-
"lint:eslint": "eslint 'src'",
96-
"lint:prettier": "prettier --check .",
97-
"lint:fix": "yarn lint:eslint --fix && yarn lint:prettier --write",
98-
"lint": "yarn lint:eslint && yarn lint:prettier",
99-
"type-check": "tsc --noEmit",
94+
"check:format": "prettier --check .",
95+
"format": "yarn check:format --write",
96+
"check:lint": "eslint 'src'",
97+
"check:type": "tsc --noEmit",
10098
"test": "NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest",
10199
"build:esm": "tsc -b tsconfig.esm.json && node scripts/esm-post-process.mjs",
102100
"build:cjs": "tsc -b tsconfig.cjs.json",
103101
"build:umd": "rollup --configPlugin typescript --config rollup.config.ts",
104102
"build": "yarn build:esm && yarn build:cjs && yarn build:umd",
105-
"release": "semantic-release"
103+
"release": "semantic-release",
104+
"gendocs": "typedoc --options typedoc.js src/"
106105
},
107106
"workspaces": [
108107
"implementations/**/*"

0 commit comments

Comments
 (0)