From 97106b71c9f1cdcccc1c51322a3f52bd7a963dd2 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Thu, 25 Mar 2021 17:55:23 +0100 Subject: [PATCH] Add GitHub workflow 2 jobs have been specified: - `pack` makes sure the package can be built. - `lint` checks the code using Prettier. --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..3a7334b --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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