Skip to content

Commit

Permalink
use github actions (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: 迷渡 <[email protected]>
  • Loading branch information
justjavac authored May 8, 2020
1 parent 37c7ad3 commit 6586ad6
Show file tree
Hide file tree
Showing 3 changed files with 399 additions and 6 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ci

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
name: test in ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: "12.16.3"

- name: Setup Deno
uses: denolib/setup-deno@master
with:
deno-version: "1.0.0-rc1"

- name: Log versions
run: |
node -v
npm -v
yarn --version
deno --version
- name: Install
run: yarn --frozen-lockfile --non-interactive

- name: Check code format
run: yarn check

- name: Compile
run: yarn compile

# - name: Package
# run: yarn package
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@
"watch": "tsc -watch -p ./",
"compile": "tsc -p ./",
"check": "deno fmt src schemas snippets",
"format": "deno fmt src schemas snippets --check"
"format": "deno fmt src schemas snippets --check",
"package": "vsce package --out ./vscode_deno.vsix --yarn"
},
"husky": {
"hooks": {
Expand All @@ -150,6 +151,7 @@
"husky": "^4.2.5",
"lint-staged": "^10.2.2",
"typescript": "^3.8.3",
"vsce": "^1.75.0",
"vscode": "^1.1.37"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 6586ad6

Please sign in to comment.