Skip to content

Commit

Permalink
test(SCOUT): [BLA-1014] Test should run in the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwapriya committed Jan 22, 2025
1 parent 7404f97 commit b53ffc5
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: On Push
on:
push:
branches:
- main
- BLA-1014
- beta

jobs:
Expand All @@ -27,13 +27,13 @@ jobs:
with:
node_version: 18

deploy_docker_image:
name: Deploy Docker Image
needs: [ validations ]
if: ${{ !(contains(github.event.head_commit.message, 'chore') || contains(github.event.head_commit.message, 'ci')) }}
uses: ./.github/workflows/docker-image.yml
with:
node_version: 18
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKER_PASSWORD }}
# deploy_docker_image:
# name: Deploy Docker Image
# needs: [ validations ]
# if: ${{ !(contains(github.event.head_commit.message, 'chore') || contains(github.event.head_commit.message, 'ci')) }}
# uses: ./.github/workflows/docker-image.yml
# with:
# node_version: 18
# secrets:
# DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
# DOCKERHUB_TOKEN: ${{ secrets.DOCKER_PASSWORD }}
25 changes: 25 additions & 0 deletions .github/workflows/validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,29 @@ jobs:
./packages/**/node_modules
key: modules-${{ hashFiles('package-lock.json') }}

- name: Install Chromium dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libnss3 \
libatk1.0-0 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libasound2 \
libpangocairo-1.0-0 \
libgtk-3-0 \
libxcb-dri3-0
- name: Set environment variables
run: |
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=false
- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build

Expand All @@ -55,3 +78,5 @@ jobs:

- name: Test
run: npm test
env:
CI: true
3 changes: 3 additions & 0 deletions packages/core-components/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,7 @@ export const config: Config = {
],
}),
],
testing: {
browserArgs: ['--no-sandbox', '--disable-setuid-sandbox'],
},
};

0 comments on commit b53ffc5

Please sign in to comment.