From b66ef401d74ddc5e4e2915c433c4e9ed2c49417b Mon Sep 17 00:00:00 2001 From: Christoph Raaflaub Date: Tue, 23 Apr 2024 15:35:23 +0200 Subject: [PATCH 1/3] Create node.js.yml --- .github/workflows/node.js.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..1c1e38c --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,26 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 18 + uses: actions/setup-node@v3 + with: + node-version: '18.x' + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test From 4cd15286dbee08e364db2302887794a0881f5f86 Mon Sep 17 00:00:00 2001 From: Christoph Raaflaub Date: Tue, 23 Apr 2024 15:38:39 +0200 Subject: [PATCH 2/3] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1c1e38c..16b4125 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -23,4 +23,4 @@ jobs: cache: 'npm' - run: npm ci - run: npm run build --if-present - - run: npm test + - run: npm run mdlint From 3d43f9ad19d2cfb3fa037b3fc8030fc6e93e6c26 Mon Sep 17 00:00:00 2001 From: Christoph Raaflaub Date: Tue, 23 Apr 2024 15:45:34 +0200 Subject: [PATCH 3/3] Update node.js.yml --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 16b4125..fbcc98a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js 18 - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '18.x' cache: 'npm'