From ff11a2d4ddb4594d3af9b910676710d78d755f9e Mon Sep 17 00:00:00 2001 From: Thomas Thomassen Date: Wed, 3 Jan 2024 12:20:29 +0100 Subject: [PATCH 1/2] Create extension.yml --- .github/workflows/extension.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/extension.yml diff --git a/.github/workflows/extension.yml b/.github/workflows/extension.yml new file mode 100644 index 0000000..8a5585a --- /dev/null +++ b/.github/workflows/extension.yml @@ -0,0 +1,34 @@ +# 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: Build Extension + +on: + push: + branches: [ "main", "dev/ci" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.4, 14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + 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 build --if-present + # - run: npm test + # - run: npm install + - run: npm run build + - run: npm run package From 296cbeeb5deb75cdc3b0131427fe69814b697c0f Mon Sep 17 00:00:00 2001 From: Thomas Thomassen Date: Wed, 3 Jan 2024 12:25:36 +0100 Subject: [PATCH 2/2] Update extension.yml --- .github/workflows/extension.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/extension.yml b/.github/workflows/extension.yml index 8a5585a..474e186 100644 --- a/.github/workflows/extension.yml +++ b/.github/workflows/extension.yml @@ -16,7 +16,8 @@ jobs: strategy: matrix: - node-version: [10.4, 14.x, 16.x, 18.x] + # node-version: [10.4, 14.x, 16.x, 18.x] + node-version: [10.4, 18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: @@ -26,9 +27,9 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci + # - run: npm ci # - run: npm run build --if-present # - run: npm test - # - run: npm install + - run: npm install - run: npm run build - run: npm run package