From d24fa5df86d028ff8c4291bd462f7d2037afb0b5 Mon Sep 17 00:00:00 2001 From: Stepan Jakl Date: Fri, 10 May 2024 10:50:54 +0100 Subject: [PATCH] add github workflow lint-and-test action --- .github/workflows/tests.yml | 31 +++++++++++++++++++++++++++++++ README.md | 7 +++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..44e7766 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,31 @@ +name: lint-and-test +run-name: lint and test + +on: + push: + branches: ["main"] + pull_request: + branches: ["*"] + +jobs: + lint-and-test: + name: Lint and Test + runs-on: ubuntu-latest + + steps: + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Install Dependencies + run: npm install + + - name: Run ESLint + run: npm run eslint + + - name: Run Mocha Tests + run: npm run mocha diff --git a/README.md b/README.md index cde770a..163b5c4 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,13 @@ License +
+
+ + Unit Tests +