Skip to content

Commit d3fe316

Browse files
committed
WIP: new workflow
Signed-off-by: Gregor Anders <gregor.anders@gmail.com>
1 parent ba41412 commit d3fe316

File tree

3 files changed

+43
-40
lines changed

3 files changed

+43
-40
lines changed

.github/workflows/development.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,8 @@ jobs:
4242
GITHUB_BRANCH: ${{ github.ref }}
4343
GITHUB_COMMIT: ${{ github.sha }}
4444
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
45-
- name: npm run it
46-
if: matrix.os == 'ubuntu-latest'
47-
run: |
48-
ls -lha /dev/shm
49-
sudo apt-get update
50-
sudo apt-get install xvfb
51-
sudo chmod 1777 /dev/shm
52-
npm run build
53-
xvfb-run --auto-servernum -- bash -c "npm run it"
54-
env:
55-
GITHUB_BRANCH: ${{ github.ref }}
56-
GITHUB_COMMIT: ${{ github.sha }}
57-
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
5845
- name: test coverage
46+
if: matrix.os == 'ubuntu-latest'
5947
uses: coverallsapp/github-action@master
6048
with:
6149
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -78,6 +66,19 @@ jobs:
7866
with:
7967
coverageCommand: npm run test
8068
debug: true
69+
- name: npm run it
70+
if: matrix.os == 'ubuntu-latest'
71+
run: |
72+
ls -lha /dev/shm
73+
sudo apt-get update
74+
sudo apt-get install xvfb
75+
sudo chmod 1777 /dev/shm
76+
npm run build
77+
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 }}
8182
- name: npm run dist
8283
run: |
8384
npm run dist

.github/workflows/master.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,9 @@ jobs:
4242
GITHUB_BRANCH: ${{ github.ref }}
4343
GITHUB_COMMIT: ${{ github.sha }}
4444
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
45-
- name: npm run it
46-
if: matrix.os == 'ubuntu-latest'
47-
run: |
48-
ls -lha /dev/shm
49-
sudo apt-get update
50-
sudo apt-get install xvfb
51-
sudo chmod 1777 /dev/shm
52-
npm run build
53-
xvfb-run --auto-servernum -- bash -c "npm run it"
54-
env:
55-
GITHUB_BRANCH: ${{ github.ref }}
56-
GITHUB_COMMIT: ${{ github.sha }}
57-
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
5845
- name: test coverage
5946
uses: coverallsapp/github-action@master
47+
if: matrix.os == 'ubuntu-latest'
6048
with:
6149
github-token: ${{ secrets.GITHUB_TOKEN }}
6250
path-to-lcov: ./coverage/lcov.info
@@ -78,6 +66,19 @@ jobs:
7866
with:
7967
coverageCommand: npm run test
8068
debug: true
69+
- name: npm run it
70+
if: matrix.os == 'ubuntu-latest'
71+
run: |
72+
ls -lha /dev/shm
73+
sudo apt-get update
74+
sudo apt-get install xvfb
75+
sudo chmod 1777 /dev/shm
76+
npm run build
77+
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 }}
8182
- name: npm run dist
8283
run: |
8384
npm run dist

.github/workflows/release.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,8 @@ jobs:
4242
GITHUB_BRANCH: ${{ github.ref }}
4343
GITHUB_COMMIT: ${{ github.sha }}
4444
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
45-
- name: npm run it
46-
if: matrix.os == 'ubuntu-latest'
47-
run: |
48-
ls -lha /dev/shm
49-
sudo apt-get update
50-
sudo apt-get install xvfb
51-
sudo chmod 1777 /dev/shm
52-
npm run build
53-
xvfb-run --auto-servernum -- bash -c "npm run it"
54-
env:
55-
GITHUB_BRANCH: ${{ github.ref }}
56-
GITHUB_COMMIT: ${{ github.sha }}
57-
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
5845
- name: test coverage
46+
if: matrix.os == 'ubuntu-latest'
5947
uses: coverallsapp/github-action@master
6048
with:
6149
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -78,6 +66,19 @@ jobs:
7866
with:
7967
coverageCommand: npm run test
8068
debug: true
69+
- name: npm run it
70+
if: matrix.os == 'ubuntu-latest'
71+
run: |
72+
ls -lha /dev/shm
73+
sudo apt-get update
74+
sudo apt-get install xvfb
75+
sudo chmod 1777 /dev/shm
76+
npm run build
77+
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 }}
8182
- name: npm run dist
8283
run: |
8384
npm run dist
@@ -107,4 +108,4 @@ jobs:
107108
with:
108109
url: ${{ steps.createrelease.outputs.upload_url }}
109110
path: ${{ steps.prepare.outputs.path }}
110-
name: '${{ steps.prepare.outputs.name }} - ${{ steps.projectinfo.outputs.version }}'
111+
name: ${{ steps.prepare.outputs.name }}

0 commit comments

Comments
 (0)