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:
Remco Haszing 2021-03-25 17:55:23 +01:00
parent f4130f38a3
commit 97106b71c9
No known key found for this signature in database
GPG key ID: 40D9F5FE9155FD3C

26
.github/workflows/ci.yaml vendored Normal file
View 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