From 78258865d56abfa419f199bb6094f7eef5b3252e Mon Sep 17 00:00:00 2001 From: Felix Gertz Date: Tue, 8 Oct 2024 18:20:19 +0200 Subject: [PATCH] Add github workflow file --- .github/workflows/lint_and_test.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lint_and_test.yml diff --git a/.github/workflows/lint_and_test.yml b/.github/workflows/lint_and_test.yml new file mode 100644 index 0000000..2d7c27d --- /dev/null +++ b/.github/workflows/lint_and_test.yml @@ -0,0 +1,30 @@ +name: Reboot.dev Node.js Template + +on: [push] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Lint sources + uses: actions/setup-node@v4 + with: + node-version: '18.x' + cache: 'npm' + - run: npm ci + - run: npm run lint + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run all tests + uses: actions/setup-node@v4 + with: + node-version: '18.x' + cache: 'npm' + - run: npm ci + - run: npm run test