From e3054c832f15a7578dc70c38ff665397fcf761bd Mon Sep 17 00:00:00 2001 From: Jakob Miksch Date: Fri, 5 Jan 2024 21:51:34 +0100 Subject: [PATCH] Create node.js.yml --- .github/workflows/node.js.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..4b09202 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,30 @@ +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run lint + - run: npm run type-check:lib + - run: npm run type-check:app + - run: npm run build:lib + - run: npm run build:app