From 926f42f664180c16cf121e66d8e31e9bb9c78875 Mon Sep 17 00:00:00 2001 From: Jeroen van Warmerdam Date: Mon, 5 Feb 2024 23:24:50 +0100 Subject: [PATCH] Add CI workflow --- .editorconfig | 4 ++++ .github/workflows/ci.yml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.editorconfig b/.editorconfig index 70072ab..952a18a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,7 @@ insert_final_newline = true [*.md] indent_style = space indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0117420 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version-file: "package.json" + - run: npm ci --no-fund + - run: npm run lint