-
Notifications
You must be signed in to change notification settings - Fork 941
49 lines (44 loc) · 1.11 KB
/
ci-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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 dependencies into Alpine and run test
run: |
cd opencti-platform/opencti-front
yarn install
yarn build
yarn lint
yarn check-ts
yarn test
yarn test:e2e
cd ../opencti-graphql
yarn install
yarn build
yarn lint
yarn check-ts
yarn test:dev
shell: alpine.sh {0}