Skip to content

Commit 9c812ea

Browse files
committed
fix: run e2e test and linting before creating
a release. remove build.yml and e2e workflow
1 parent ea91dc6 commit 9c812ea

3 files changed

Lines changed: 48 additions & 143 deletions

File tree

.github/workflows/build.yml

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

.github/workflows/e2e.yml

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

.github/workflows/release-please.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2+
# This worklflow will perform following actions when the code is pushed to main branch.
3+
# - Run end to end test
4+
# - Test linting.
5+
# - Trigger release-please action to create release which needs e2etest & lint to pass first.
6+
#
7+
# Maintainers:
8+
# - name: Nisha Sharma
9+
# - email: nisha.sharma@uni-jena.de
10+
111
name: release-please
212

313
on:
@@ -6,6 +16,44 @@ on:
616
- main
717

818
jobs:
19+
e2etest:
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
project: [chromium, firefox, webkit]
24+
fail-fast: false
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: 16.x
30+
- name: Install dependencies
31+
run: npm ci
32+
- name: Install Playwright
33+
run: npx playwright install --with-deps
34+
- name: Build test application
35+
env:
36+
NODE_OPTIONS: '--max_old_space_size=4096'
37+
run: npm run build-no-minify
38+
- name: Run E2E tests on ${{ matrix.project }}
39+
run: npx playwright test --project ${{ matrix.project }}
40+
continue-on-error: ${{ matrix.project == 'webkit' }}
41+
42+
lint:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: actions/setup-node@v2
47+
with:
48+
node-version: 16.x
49+
- name: Install dependencies
50+
run: npm ci
51+
- name: Run ESLint
52+
run: npm run eslint
53+
- name: Run Prettier
54+
run: npm run prettier
55+
- name: Check types
56+
run: npm run check-types
957
release-please:
1058
runs-on: ubuntu-latest
1159
steps:

0 commit comments

Comments
 (0)