mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-05-19 04:08:48 +00:00
Add GitHub workflow
2 jobs have been specified: - `pack` makes sure the package can be built. - `lint` checks the code using Prettier.
This commit is contained in:
parent
f4130f38a3
commit
97106b71c9
1 changed files with 26 additions and 0 deletions
26
.github/workflows/ci.yaml
vendored
Normal file
26
.github/workflows/ci.yaml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [master]
|
||||
tags: ['*']
|
||||
|
||||
jobs:
|
||||
pack:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with: { node-version: 14 }
|
||||
- run: yarn --frozen-lockfile
|
||||
- run: yarn pack
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with: { node-version: 14 }
|
||||
- run: yarn --frozen-lockfile
|
||||
- run: yarn lint
|
||||
Loading…
Reference in a new issue