From 1fe6c17e3a5c4b1bea33261024d1a5ecc7d26784 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 7 Jun 2022 22:55:37 +0200 Subject: [PATCH] CReate lint and build job using GH Actions --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..de045e3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +on: + # Push to long living branches or PRs + push: + branches: + - main + pull_request: + +jobs: + lint: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + - run: npm install + - run: npm run lint + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + - run: npm install + - run: npm run build