Skip to content

Commit b804a18

Browse files
committed
Merge branch 'main' of https://github.com/NFDI4Chem/nmrium-react-wrapper into development
2 parents 19f4418 + 7aad137 commit b804a18

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
11+
name: release-please
12+
13+
on:
14+
push:
15+
branches:
16+
- main
17+
18+
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
57+
58+
release-please:
59+
runs-on: ubuntu-latest
60+
needs: ['lint', 'e2etest']
61+
steps:
62+
- uses: google-github-actions/release-please-action@v3
63+
with:
64+
release-type: node
65+
package-name: release-please-action
66+
token: ${{ secrets.GITHUB_TOKEN }}
67+
prerelease: true

0 commit comments

Comments
 (0)