File tree Expand file tree Collapse file tree 3 files changed +92
-62
lines changed
Expand file tree Collapse file tree 3 files changed +92
-62
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : build-and-test
2+ on :
3+ pull_request :
4+ push :
5+ branches :
6+ - main
7+ jobs :
8+ build :
9+ runs-on : ubuntu-20.04
10+ steps :
11+ - name : Check out code
12+ uses : actions/checkout@v2
13+
14+ - name : Cache node modules
15+ uses : actions/cache@v2
16+ with :
17+ path : ~/.npm
18+ key : ${{ runner.os }}-node-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
19+ restore-keys : |
20+ ${{ runner.os }}-node-${{ hashFiles('package.json') }}-
21+ ${{ runner.os }}-node-
22+
23+ - name : NPM Install
24+ run : npm ci
25+
26+ - name : Build
27+ run : npm run build:ci
28+ test :
29+ runs-on : ubuntu-20.04
30+ steps :
31+ - name : Check out code
32+ uses : actions/checkout@v2
33+
34+ - name : Cache node modules
35+ uses : actions/cache@v2
36+ with :
37+ path : ~/.npm
38+ key : ${{ runner.os }}-node-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
39+ restore-keys : |
40+ ${{ runner.os }}-node-${{ hashFiles('package.json') }}-
41+ ${{ runner.os }}-node-
42+
43+ - name : NPM Install
44+ run : npm ci
45+
46+ - name : Test
47+ run : npm run test:ci
48+
49+ - name : Upload coverage to Codecov
50+ uses : codecov/codecov-action@v1
51+ with :
52+ fail_ci_if_error : true
53+
54+ - name : Publish Unit Test Results
55+ uses : docker://ghcr.io/enricomi/publish-unit-test-result-action:v1.6
56+ with :
57+ github_token : ${{ secrets.GITHUB_TOKEN }}
58+ files : test-results/**/*.xml
Original file line number Diff line number Diff line change 1+ name : publish
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-20.04
9+ steps :
10+ - name : Check out code
11+ uses : actions/checkout@v2
12+
13+ - name : Cache node modules
14+ uses : actions/cache@v2
15+ with :
16+ path : ~/.npm
17+ key : ${{ runner.os }}-node-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
18+ restore-keys : |
19+ ${{ runner.os }}-node-${{ hashFiles('package.json') }}-
20+ ${{ runner.os }}-node-
21+
22+ - name : NPM Install
23+ run : npm ci
24+
25+ - name : Build
26+ run : npm run build:ci
27+
28+ - name : Publish
29+ run : npm run semantic-release
30+ env :
31+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32+ NPM_USERNAME : ${{ secrets.NPM_USERNAME }}
33+ NPM_PASSWORD : ${{ secrets.NPM_PASSWORD }}
34+ NPM_EMAIL : ${{ secrets.NPM_EMAIL }}
You can’t perform that action at this time.
0 commit comments