Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Commit 2334dc5

Browse files
committed
Updated ci configs
1 parent 3ad7040 commit 2334dc5

File tree

3 files changed

+8
-40
lines changed

3 files changed

+8
-40
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: npm ci
2525
- name: Compile
2626
run: npm run compile
27-
- name: Generate coverage report
27+
- name: Run tests
2828
uses: GabrielBB/xvfb-action@v1
2929
with:
3030
run: npm test
@@ -58,16 +58,9 @@ jobs:
5858
run: npm ci
5959
- name: Compile
6060
run: npm run compile
61-
- name: Init window e2e test subpackage
62-
run: npm --prefix e2e/window-test ci
63-
- name: Generate coverage report
61+
- name: Run tests
6462
uses: GabrielBB/xvfb-action@v1
6563
with:
66-
run: npm run coverage -- --coverageDirectory=coverage/unit
64+
run: npm test
6765
- name: Run Docker E2E tests
68-
if: ${{matrix.os == 'ubuntu-latest'}}
69-
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${{matrix.node}}"
70-
- name: Run Electron e2e test subpackage
71-
uses: GabrielBB/xvfb-action@v1
72-
with:
73-
run: npm --prefix e2e/electron-test cit
66+
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} 14"

.github/workflows/snapshot_release.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
with:
3636
run: npm test
3737
- name: Run Docker E2E tests
38-
if: ${{matrix.os == 'ubuntu-latest'}}
39-
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${{matrix.node}}"
38+
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} 14"
4039

4140

4241
deploy:
@@ -52,8 +51,6 @@ jobs:
5251
node-version: 14
5352
- name: Install
5453
run: npm ci
55-
- name: Install @nut-tree/libnut@next
56-
run: npm i @nut-tree/libnut@next
5754
- name: Create snapshot release
5855
run: bash ./.build/pre-release.sh
5956
- name: Publish snapshot release to npm

.github/workflows/tagged_release.yaml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,12 @@ jobs:
2727
run: npm ci
2828
- name: Compile
2929
run: npm run compile
30-
- name: Init window e2e test subpackage
31-
run: npm --prefix e2e/window-test ci
32-
- name: Generate coverage report
30+
- name: Run tests
3331
uses: GabrielBB/xvfb-action@v1
3432
with:
3533
run: npm test
3634
- name: Run Docker E2E tests
37-
if: ${{matrix.os == 'ubuntu-latest'}}
38-
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${{matrix.node}}"
39-
- name: Run Electron e2e test subpackage
40-
uses: GabrielBB/xvfb-action@v1
41-
with:
42-
run: npm --prefix e2e/electron-test cit
35+
run: docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} 14"
4336

4437
deploy:
4538
needs:
@@ -55,22 +48,7 @@ jobs:
5548
registry-url: 'https://registry.npmjs.org'
5649
- name: Install
5750
run: npm ci
58-
- name: Run typedoc
59-
run: npm run typedoc
60-
- name: Publish typedocs to GitHub Pages
61-
uses: peaceiris/[email protected]
62-
with:
63-
deploy_key: ${{ secrets.API_DOC_DEPLOY_KEY }}
64-
external_repository: nut-tree/apidoc
65-
publish_dir: ./docs
6651
- name: Publish tagged release to npm
6752
run: npm publish
6853
env:
69-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
70-
- uses: actions/setup-node@v2
71-
with:
72-
registry-url: 'https://npm.pkg.github.com'
73-
- name: Publish tagged release to GPR
74-
run: npm publish
75-
env:
76-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)