ZETA-8581: Update access token logic so more consistent #347
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Unit Tests | |
on: | |
pull_request: | |
branches: [ develop ] | |
workflow_dispatch: | |
jobs: | |
DevOpsPRUnitTests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
- name: Login to DockerHub Registry | |
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | |
- name: Build Private Dependencies and Test | |
run: | | |
sudo apt install -y jq | |
echo "@razroo:registry=https://npm.pkg.github.com/" >> ~/.npmrc | |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GitHubToken }}" >> ~/.npmrc | |
yarn | |
- name: Test | |
run: | | |
yarn | |
npm run test |