Skip to content

Commit

Permalink
Merge pull request #243 from ThatConference/newman/chore/node-20
Browse files Browse the repository at this point in the history
newman: chore: update and test for node 20
  • Loading branch information
brettski authored Dec 1, 2023
2 parents 9a03ae8 + 886c081 commit c399477
Show file tree
Hide file tree
Showing 8 changed files with 5,792 additions and 19,556 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/newman_PullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Checkout PR
uses: actions/checkout@v3
- name: Use Node.js 14.x
uses: actions/setup-node@v1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 20
- name: npm ci, run validate
run: |
cd functions/newman
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/newman_PushMaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 14.x
uses: actions/setup-node@v1
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 20
- name: npm ci, run validate
run: |
cd functions/newman
Expand All @@ -31,11 +31,12 @@ jobs:
run: |
cd functions/newman
pwd
npm pkg delete scripts.build
cp ./package.json __build__/
cp ./package-lock.json __build__/
git rev-list --count master > __build__/ccnt.txt
- name: Archive Build Artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: tc-api
path: functions/newman/__build__
Expand All @@ -56,14 +57,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download Build Artifact
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: tc-api
path: tc-api
- name: Setup google auth for github actions
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCLOUD_AUTH }}
- name: Setup gcloud Actions
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v1
with:
version: '360.0.0'
service_account_key: ${{ secrets.GCLOUD_AUTH }}
version: "437.0.1"
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: write .env file
run: |
Expand All @@ -86,7 +91,7 @@ jobs:
echo $PWD
ls -lasiR
- name: Run GCP Deploy Function - newman
run: gcloud functions deploy newman --runtime nodejs14 --trigger-http --source $PWD/tc-api --entry-point handler --memory 256MB --timeout 300
run: gcloud functions deploy newman --runtime nodejs20 --trigger-http --source $PWD/tc-api --entry-point handler --memory 256MB --timeout 300
env:
CLOUDSDK_CORE_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
- name: Slack Notification
Expand Down
2 changes: 1 addition & 1 deletion functions/newman/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"import/prefer-default-export": "off"
},
"plugins": ["jest"],
"parser": "babel-eslint"
"parser": "@babel/eslint-parser"
}
2 changes: 1 addition & 1 deletion functions/newman/.node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17.5
20.10.0
Loading

0 comments on commit c399477

Please sign in to comment.