-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (43 loc) · 1.16 KB
/
build.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
name: Build Extensions
on:
push:
branches: [main]
pull_request:
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '17'
- name: Install Build Dependencies
run: npm ci
- name: Run Unit Tests
run: npm run test
- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_SECRET }}
files: coverage/coverage-final.json
verbose: true
- name: Fetch ATT&CK STIX Data
run: npm run fetch-attack
- name: Build Search Index
run: npm run build-index
- name: Build Svelte Application
run: npm run build
- name: Build Chrome extension
run: make chrome-ext
- name: Package Chrome Extension
uses: actions/upload-artifact@v3
with:
name: attack-powered-suit-chrome
path: browsers/chrome/
- name: Build Firefox extension
run: make firefox-ext
- name: Package Chrome Extension
uses: actions/upload-artifact@v3
with:
name: attack-powered-suit-firefox
path: browsers/firefox/