From 46c8af2ae50a750ced67767237d7633015dc527b Mon Sep 17 00:00:00 2001 From: Leszek Manicki Date: Wed, 18 Dec 2024 23:18:50 +0100 Subject: [PATCH] Added Github Actions workflow to run npm test script on push to git --- .github/workflows/lint-and-test.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/lint-and-test.yaml diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml new file mode 100644 index 0000000..93875a1 --- /dev/null +++ b/.github/workflows/lint-and-test.yaml @@ -0,0 +1,18 @@ +name: Lint and Test +on: push +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: ['22.x', '23.x'] + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - name: Install dependencies + run: npm install + - run: npm test