Skip to content

[POC] CI testing workflow for Github Action #4

[POC] CI testing workflow for Github Action

[POC] CI testing workflow for Github Action #4

Workflow file for this run

name: "CI Test"
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
paths-ignore:
- '**/*.md'
- '**/*.txt'
schedule:
- cron: "21 11 * * 0"
jobs:
ci:
name: CI test
runs-on: ubuntu-latest
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
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: |
yarn lint
yarn check-ts
- name: Run unit and integration tests
run: yarn test
- name: Run test e2e
run: |
yarn playwright install --with-deps
yarn test:e2e
- name: Install backend dependencies into Alpine
run: |
cd ../opencti-graphql
yarn install
yarn build
shell: alpine.sh {0}
- name: Run linter and check TS
run: |
yarn lint
yarn check-ts
- name: Run unit and integration tests
run: yarn test:dev