-
Notifications
You must be signed in to change notification settings - Fork 79
61 lines (50 loc) · 1.46 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
# Javascript Node CircleCI 2.0 configuration file
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_and_test:
runs-on: ubuntu-latest
env:
CC_TEST_REPORTER_ID: 707f5959816d898ffc7176d49d2cd4f6b200c697460965a77d7af28ffdcf5cb6
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-dependencies-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-dependencies-
# - name: Install FOSSA
# run: |
# curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
- name: Install dependencies
run: npm install
# - name: FOSSA Init
# run: fossa init
# - name: FOSSA Analyze
# run: fossa analyze
# - name: FOSSA Test
# run: fossa test
# code climate requires before-build and after-build to be executed around test
- name: Run Tests
run: |
#./cc-test-reporter before-build
npm run test
#./cc-test-reporter after-build --exit-code $?
- name: Build and Package
run: |
npm run build
npm run package
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: package
path: ./dist/package.zip