Skip to content

Commit

Permalink
update nodejs version from 12 to 16 (#160)
Browse files Browse the repository at this point in the history
Co-authored-by: Felipe Schmitt <[email protected]>
  • Loading branch information
patelchandni and fsschmitt authored Nov 3, 2022
1 parent d4e7f5d commit d2580ab
Show file tree
Hide file tree
Showing 23 changed files with 3,278 additions and 2,920 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-dotnet3-lcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 12.x for GitHub Action
- name: Set Node.js 16.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-dotnet3-wcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 12.x for GitHub Action
- name: Set Node.js 16.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-java8-lcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 12.x for GitHub Action
- name: Set Node.js 16.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-java8-wcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 12.x for GitHub Action
- name: Set Node.js 16.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: RUN_E2E_TESTS_NODE12_LCON
name: RUN_E2E_TESTS_NODE16_LCON
on:
push:
branches:
Expand All @@ -12,9 +12,9 @@ on:
- '**.md'

env:
AZURE_FUNCTIONAPP_NAME: gae-fa-node12-lcon
AZURE_FUNCTIONAPP_PACKAGE_PATH: './tests/e2e/node12'
NODE_VERSION: '12.x'
AZURE_FUNCTIONAPP_NAME: gae-fa-node16-lcon
AZURE_FUNCTIONAPP_PACKAGE_PATH: './tests/e2e/node16'
NODE_VERSION: '16.x'

jobs:
run:
Expand All @@ -24,10 +24,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 12.x for GitHub Action
- name: Set Node.js 16.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.GAE_FA_NODE12_LCON }}
publish-profile: ${{ secrets.GAE_FA_NODE16_LCON }}

- name: E2E Check HttpTrigger Result
shell: pwsh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: RUN_E2E_TESTS_NODE12_WCON
name: RUN_E2E_TESTS_NODE16_WCON
on:
push:
branches:
Expand All @@ -12,9 +12,9 @@ on:
- '**.md'

env:
AZURE_FUNCTIONAPP_NAME: gae-fa-node12-wcon
AZURE_FUNCTIONAPP_PACKAGE_PATH: './tests/e2e/node12'
NODE_VERSION: '12.x'
AZURE_FUNCTIONAPP_NAME: gae-fa-node16-wcon
AZURE_FUNCTIONAPP_PACKAGE_PATH: './tests/e2e/node16'
NODE_VERSION: '16.x'

jobs:
run:
Expand All @@ -24,10 +24,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 12.x for GitHub Action
- name: Set Node.js 16.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.GAE_FA_NODE12_WCON }}
publish-profile: ${{ secrets.GAE_FA_NODE16_WCON }}

- name: E2E Check HttpTrigger Result
shell: pwsh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-powershell6-wcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 12.x for GitHub Action
- name: Set Node.js 16.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/run-e2e-tests-python37-lcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 16.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 16.x

- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v1
with:
Expand All @@ -35,11 +40,6 @@ jobs:
- name: Build GitHub Action
run: npm run build

- name: E2E Setup Node ${{ env.NODE_VERSION }} Environment
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}

- name: E2E Resolve Project Dependencies Using Pip
shell: bash
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/run-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,38 @@ on:
- dev

env:
NODE_VERSION: '10.x'
NODE_VERSION: '16.x'

jobs:
run-unit-tests:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@master

- name: Setup Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}

- name: 'Resolve Project Dependencies Using NPM'
shell: bash
run: |
npm install
- name: 'Run Unit Tests'
shell: bash
run: |
set -e -x
npm run test
- name: 'Report Coverage'
shell: bash
run: |
set -e -x
npm run coverage
npm run coverage-report
- name: 'Upload Coverage Report to CodeCov'
uses: codecov/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| .NETCore Linux | ![master .netcore linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_DOTNET3_LCON/badge.svg?branch=master) | ![dev .netcore linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_DOTNET3_LCON/badge.svg?branch=dev) |
| Java Windows | ![master java windows e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_JAVA8_WCON/badge.svg?branch=master) | ![dev java windows e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_JAVA8_WCON/badge.svg?branch=dev) |
| Java Linux | ![master java linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_JAVA8_LCON/badge.svg?branch=master) | ![dev java linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_JAVA8_LCON/badge.svg?branch=dev) |
| Node JS Windows | ![master nodejs windows e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_NODE12_WCON/badge.svg?branch=master) | ![dev nodejs windows e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_NODE12_WCON/badge.svg?branch=dev) |
| Node JS Linux | ![master nodejs linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_NODE12_LCON/badge.svg?branch=master) | ![dev nodejs linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_NODE12_LCON/badge.svg?branch=dev) |
| Node JS Windows | ![master nodejs windows e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_NODE16_WCON/badge.svg?branch=master) | ![dev nodejs windows e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_NODE16_WCON/badge.svg?branch=dev) |
| Node JS Linux | ![master nodejs linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_NODE16_LCON/badge.svg?branch=master) | ![dev nodejs linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_NODE16_LCON/badge.svg?branch=dev) |
| PowerShell Windows | ![master powershell windows e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_POWERSHELL6_WCON/badge.svg?branch=master) | ![dev powershell windows e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_POWERSHELL6_WCON/badge.svg?branch=dev) |
| Python Linux | ![master python linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_PYTHON37_LCON/badge.svg?branch=master) | ![dev python linux e2e](https://github.com/Azure/functions-action/workflows/RUN_E2E_TESTS_PYTHON37_LCON/badge.svg?branch=dev) |

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ branding:
icon: 'functionapp.svg'
color: 'blue'
runs:
using: 'node12'
using: 'node16'
main: 'lib/main.js'
Loading

0 comments on commit d2580ab

Please sign in to comment.