From 43eb02acd09b260998956c444609eb34ab43a49d Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Sat, 25 May 2024 11:56:57 +0200 Subject: [PATCH] Add lint (#5) --- .github/workflows/lint.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..41bd00c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,25 @@ +name: Lint the code +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - uses: actions/checkout@v4 + - name: Lint the server + run: | + npm install --prefix server + npm run lint --prefix server + - name: Lint the testrunner + run: | + npm install --prefix testrunner + npm run lint --prefix testrunner \ No newline at end of file