From 1dc7a10d0ff37ccd84a15dfc60ed32a4736fc399 Mon Sep 17 00:00:00 2001 From: sebastian-sauer Date: Wed, 19 Jul 2023 22:05:17 +0200 Subject: [PATCH] Add github action to run lint --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2595448 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm lint