-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[POC] CI testing workflow for Github Action
- Loading branch information
1 parent
2d4a446
commit b3ce01a
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
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: | ||
frontend: | ||
name: Frontend | ||
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 lint | ||
yarn check-ts | ||
yarn test | ||
yarn test:e2e | ||
cd ../opencti-graphql | ||
yarn install | ||
yarn lint | ||
yarn check-ts | ||
yarn test:dev | ||
shell: alpine.sh {0} |