Skip to content

Commit

Permalink
ci: init
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Jul 10, 2024
1 parent 956863a commit 9691ef1
Show file tree
Hide file tree
Showing 3 changed files with 581 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm

- name: Install
run: pnpm install

- name: Lint
run: pnpm run lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm

- name: Install
run: pnpm install

- name: Typecheck
run: pnpm run typecheck

trybuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm

- name: Install
run: pnpm install

- name: Typecheck
run: pnpm run package
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"test": "node ./out/test/runTest.js",
"publish": "vsce publish --no-dependencies "
"publish": "vsce publish --no-dependencies ",
"package": "vsce package --no-dependencies "
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
Expand All @@ -52,6 +53,7 @@
"popular-english-words": "^1.0.2",
"typescript": "^5.4.5",
"varname": "^6.2.0",
"vsce": "^2.15.0",
"vscode-oniguruma": "^1.7.0",
"vscode-textmate": "^9.0.0"
},
Expand Down
Loading

0 comments on commit 9691ef1

Please sign in to comment.