Skip to content

Upgrade AWS SDK DynamoDB from v2 > v3 #6202

Upgrade AWS SDK DynamoDB from v2 > v3

Upgrade AWS SDK DynamoDB from v2 > v3 #6202

Workflow file for this run

name: build
on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master
jobs:
tests:
name: tests
runs-on: ubuntu-latest
env:
TZ: Europe/London
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
- name: Fix code coverage paths
working-directory: ./coverage
run: |
sed -i 's/\/home\/runner\/work\/rod-licensing\/rod-licensing\//\/github\/workspace\//g' lcov.info
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
new-version:
name: new-version
runs-on: ubuntu-latest
needs: tests
if: ${{ github.event_name == 'push' }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Run versioning script
run: . ./scripts/github/deploy.sh
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
BRANCH: ${{ steps.extract_branch.outputs.branch }}
HUSKY: 0