Skip to content

Commit 8fe61ef

Browse files
authored
Merge pull request #9 from gregoranders/development
Development
2 parents 89ffa4d + 18943dd commit 8fe61ef

File tree

14 files changed

+147
-387
lines changed

14 files changed

+147
-387
lines changed

.github/actions/build-info/action.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/actions/build-info/index.ts

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/actions/build-info/tsconfig.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/actions/create-release/action.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/actions/create-release/index.ts

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/actions/create-release/tsconfig.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/actions/upload-asset/action.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/actions/upload-asset/index.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

.github/actions/upload-asset/tsconfig.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/development.yml

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,28 @@ jobs:
2222
uses: actions/setup-node@v1
2323
with:
2424
node-version: ${{ matrix.node-version }}
25-
- name: npm install and github actions
25+
- name: nodejs project information
26+
id: projectinfo
27+
uses: gregoranders/nodejs-project-info@v0.0.4
28+
- name: npm install
2629
run: |
2730
npm install
28-
npm run actions
29-
- name: prebuild
30-
id: prebuild
31-
uses: ./.github/actions/build-info
31+
- name: npm run build
32+
run: |
33+
npm run build
3234
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3435
GITHUB_BRANCH: ${{ github.ref }}
3536
GITHUB_COMMIT: ${{ github.sha }}
36-
- name: npm install, build, test and dist
37+
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
38+
- name: npm test
3739
run: |
38-
npm install
39-
npm run build
4040
npm test
41-
npm run dist
41+
env:
42+
GITHUB_BRANCH: ${{ github.ref }}
43+
GITHUB_COMMIT: ${{ github.sha }}
44+
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
4245
- name: test coverage
46+
if: matrix.os == 'ubuntu-latest'
4347
uses: coverallsapp/github-action@master
4448
with:
4549
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -56,10 +60,13 @@ jobs:
5660
uses: paambaati/codeclimate-action@v2.3.0
5761
env:
5862
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
63+
GITHUB_BRANCH: ${{ github.ref }}
64+
GITHUB_COMMIT: ${{ github.sha }}
65+
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
5966
with:
6067
coverageCommand: npm run test
6168
debug: true
62-
- name: integration test
69+
- name: npm run it
6370
if: matrix.os == 'ubuntu-latest'
6471
run: |
6572
ls -lha /dev/shm
@@ -68,3 +75,14 @@ jobs:
6875
sudo chmod 1777 /dev/shm
6976
npm run build
7077
xvfb-run --auto-servernum -- bash -c "npm run it"
78+
env:
79+
GITHUB_BRANCH: ${{ github.ref }}
80+
GITHUB_COMMIT: ${{ github.sha }}
81+
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
82+
- name: npm run dist
83+
run: |
84+
npm run dist
85+
env:
86+
GITHUB_BRANCH: ${{ github.ref }}
87+
GITHUB_COMMIT: ${{ github.sha }}
88+
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}

0 commit comments

Comments
 (0)