From 93b5b2e8e2917e17fe2b58919faa78203ce3a92f Mon Sep 17 00:00:00 2001 From: Benny Samir Hierl Date: Sat, 29 Jan 2022 13:17:35 +0100 Subject: [PATCH] update actions Signed-off-by: Benny Samir Hierl --- .../{build-publish-image.yml => ci.yml} | 17 ++++++++++++++++- .github/workflows/validation.yml | 2 -- 2 files changed, 16 insertions(+), 3 deletions(-) rename .github/workflows/{build-publish-image.yml => ci.yml} (80%) diff --git a/.github/workflows/build-publish-image.yml b/.github/workflows/ci.yml similarity index 80% rename from .github/workflows/build-publish-image.yml rename to .github/workflows/ci.yml index 8f7bef2..829ddfd 100644 --- a/.github/workflows/build-publish-image.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,27 @@ -name: 'Build and publish docker image' +name: 'CI' on: push: branches: [main] jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up NodeJs + uses: actions/setup-node@v2 + with: + node-version: 16 + - name: Install dependencies + run: npm ci + - name: Linter + run: npm run lint + - name: Typecheck + run: npm run typecheck docker: runs-on: ubuntu-latest + needs: lint steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index b5c65d7..4a48fc3 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -1,8 +1,6 @@ name: Validation on: - push: - branches: [main] pull_request: branches: [main]