Skip to content

Bugfix/ffdc 3331 region specific redirect uri #559

Bugfix/ffdc 3331 region specific redirect uri

Bugfix/ffdc 3331 region specific redirect uri #559

Workflow file for this run

name: Pull requests
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
package: [oidc, proxy, logger, ffdc-apis/corporate-accounts]
steps:
# Setup
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Dependencies
run: npm ci --loglevel=error
# Tests
- name: Unit tests
run: npm run test:cov
- name: Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
fail_ci_if_error: true
# Build
- name: Artifact name formatting
run: |
artifactName="${packagePath////-}"
libName="${packagePath##*/}"
echo "Artifact name : ${artifactName}"
echo "Library name : ${libName}"
echo "artifactName=$artifactName" >> $GITHUB_ENV
echo "libName=$libName" >> $GITHUB_ENV
env:
packagePath: ${{ matrix.package }}
- name: Build Package
run: npm run build -- ${{ env.libName }}
- name: Upload Artifact
uses: actions/[email protected]
with:
name: '${{ env.artifactName }}'
path: './dist/libs/${{ matrix.package }}'