Skip to content

Commit

Permalink
Sync test-deployment with main (#29)
Browse files Browse the repository at this point in the history
* Installed Playwright for E2E-Testing

* Installed ESLint

* Added Linting as GitHub Action

* Removed Linting as GitHub Action

* csv inport (#24)

* front without logic implemented

* läuft mit einem Fehler

* Deutsch

* Update sync-test-deploy-branch.yaml (#25)

* Update sync-test-deploy-branch.yaml

* Update sync-test-deploy-branch.yaml

* Finalized sync-test-deploy-branch.yaml (#28)

Should work now. Was tested in separate repo

---------

Co-authored-by: david-2031 <[email protected]>
  • Loading branch information
REDDERD and david-2031 authored Sep 24, 2023
1 parent 301e864 commit 135f90b
Show file tree
Hide file tree
Showing 8 changed files with 2,368 additions and 85 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
env:
browser: true
es2021: true
extends: standard-with-typescript
parserOptions:
ecmaVersion: latest
sourceType: module
rules: {}
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
26 changes: 16 additions & 10 deletions .github/workflows/sync-test-deploy-branch.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: Synchronize Branches

name: Sync test-deploy with main
on:
push:
branches:
- main

jobs:
sync:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout repository
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
ref: main
fetch-depth: 0 # Fetch all history for all branches and tags.

- name: Push to test-deployment branch
run: |
git push origin HEAD:refs/heads/test-deployment
node-version: 12
- name: Opening pull request
id: pull
uses: tretuna/[email protected]
with:
GITHUB_TOKEN: ${{secrets.SECRET_SYNC}}
FROM_BRANCH: "main"
TO_BRANCH: "test-deployment"
PULL_REQUEST_TITLE: "Sync test-deployment with main"
PULL_REQUEST_BODY: "For keeping test-deployment up to date with the recent changes made to main."
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ testem.log
# System files
.DS_Store
Thumbs.db
/test-results/
/playwright-report/
/playwright/.cache/
Loading

0 comments on commit 135f90b

Please sign in to comment.