Migrating workflows from v2/trunk to here to reduce confusion/collisions

This commit is contained in:
Thomas Nguyen
2023-09-08 10:36:34 -07:00
parent 7892df25ce
commit d9df625c0c
4 changed files with 444 additions and 0 deletions

38
.github/workflows/test-v2.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: OTA Admin Portal v2 Test
on:
push:
branches:
- v2/trunk
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
JFROG_NPMRC: ${{ secrets.JFROG_NPMRC }}
GH_TOKEN: Fisker-Inc:${{secrets.GITHUB_TOKEN}}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: npm
- name: Run Tests
run: |
echo ${JFROG_NPMRC} | base64 -d > .npmrc
npm install
npm test -- --coverage --coverageDirectory='coverage' --watchAll=false --passWithNoTests #remove once tests are written
npm run build
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}