Skip to content

Commit

Permalink
[POC/CI] CI testing workflow frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
helene-nguyen committed May 7, 2024
1 parent 42b4fef commit 7573131
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,9 @@ jobs:
defaults:
run:
working-directory: ./opencti-platform/opencti-front
shell: alpine.sh --root {0}
steps:
- uses: actions/checkout@v4

- name: Setup Alpine
uses: jirutka/setup-alpine@v1
with:
branch: v3.18
packages: >
nodejs npm git tini gcc g++ make musl-dev cargo python3 py3-pip python3-dev postfix postfix-pcre
- name: Setup NodeJS and cache dependencies
uses: actions/setup-node@v4
with:
Expand All @@ -51,7 +43,7 @@ jobs:
- name: Check Python version
run: python -V

- name: Install and build frontend dependencies into Alpine
- name: Install and build frontend dependencies
run: |
yarn install
yarn build
Expand All @@ -66,8 +58,13 @@ jobs:
yarn test
- name: Run test e2e
env:
BACK_END_URL: http://opencti-e2e-start:4500
E2E_TEST: true
run: |
yarn playwright install --with-deps
apt-get update
apt-get -y install netcat-traditional
npx playwright install --with-deps chromium
yarn test:e2e
# backend:
Expand Down

0 comments on commit 7573131

Please sign in to comment.