Skip to content

Commit

Permalink
fix: run e2e test and linting before creating
Browse files Browse the repository at this point in the history
a release.
remove build.yml and e2e workflow
  • Loading branch information
NishaSharma14 committed Mar 24, 2023
1 parent ea91dc6 commit 9c812ea
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 143 deletions.
114 changes: 0 additions & 114 deletions .github/workflows/build.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/e2e.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

# This worklflow will perform following actions when the code is pushed to main branch.
# - Run end to end test
# - Test linting.
# - Trigger release-please action to create release which needs e2etest & lint to pass first.
#
# Maintainers:
# - name: Nisha Sharma
# - email: nisha.sharma@uni-jena.de

name: release-please

on:
Expand All @@ -6,6 +16,44 @@ on:
- main

jobs:
e2etest:
runs-on: ubuntu-latest
strategy:
matrix:
project: [chromium, firefox, webkit]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build test application
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: npm run build-no-minify
- name: Run E2E tests on ${{ matrix.project }}
run: npx playwright test --project ${{ matrix.project }}
continue-on-error: ${{ matrix.project == 'webkit' }}

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run eslint
- name: Run Prettier
run: npm run prettier
- name: Check types
run: npm run check-types
release-please:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 9c812ea

Please sign in to comment.