Skip to content

Commit

Permalink
[POC/CI] correct yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
helene-nguyen committed Apr 18, 2024
1 parent 4401680 commit 648d3e2
Showing 1 changed file with 33 additions and 15 deletions.
48 changes: 33 additions & 15 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,21 @@ on:
- cron: "21 11 * * 0"

jobs:
ci:
name: CI test
frontend:
name: Frontend CI
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./opencti-platform/opencti-front
shell: alpine.sh --root {0}
steps:
- uses: actions/checkout@v4
- uses: jirutka/setup-alpine@v1
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: subdir/package-lock.json
branch: v3.18
packages: >
nodejs npm git tini gcc g++ make musl-dev cargo python3 py3-pip python3-dev postfix postfix-pcre
Expand All @@ -29,45 +36,56 @@ jobs:
run: |
npm install -g node-gyp yarn
python -V
shell: alpine.sh --root {0}
- name: Install and build frontend dependencies into Alpine
run: |
cd opencti-platform/opencti-front
yarn install
yarn build
yarn test
shell: alpine.sh {0}
- name: Run linter and check TS
run: |
cd opencti-platform/opencti-front
yarn lint
yarn check-ts
- name: Run unit and integration tests
run: |
cd opencti-platform/opencti-front
yarn test
- name: Run test e2e
run: |
cd opencti-platform/opencti-front
yarn playwright install --with-deps
yarn test:e2e
- name: Install backend dependencies into Alpine
backend:
name: Backend CI
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./opencti-platform/opencti-graphql
shell: alpine.sh --root {0}
steps:
- uses: actions/checkout@v4
- 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 Node.js & python
run: |
npm install -g node-gyp yarn
python -V
- name: Install and build backend dependencies into Alpine
run: |
cd opencti-platform/opencti-graphql
yarn install
yarn build
shell: alpine.sh {0}
- name: Run linter and check TS
run: |
cd opencti-platform/opencti-graphql
yarn lint
yarn check-ts
- name: Run unit and integration tests
run: yarn test:dev
run: |
yarn test:dev

0 comments on commit 648d3e2

Please sign in to comment.