Skip to content

Commit

Permalink
Feature/scihub 963 add GitHub workflows (#80)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Krzysztof Nofz <[email protected]>
  • Loading branch information
zgrybus and Krzysztof Nofz authored Sep 18, 2023
1 parent 6516f88 commit 969e18a
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Changes

-

### Screenshot / Video of the changes

## Pre-Merge Checklist

### Notifications:

- [ ] Added Reviewers

### Documentation:

- [ ] Updated CHANGELOG.
- [ ] Updated version.

### Code Quality

- [ ] Added or updated unit tests.
52 changes: 52 additions & 0 deletions .github/workflows/javascript_checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: JS checks

on:
push:
branches:
- main
- dev
pull_request:

jobs:

build_lint:
name: build_lint
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: yarn

- name: Lint
run: |
yarn lint:js
yarn lint:style
- name: Build
run: yarn build

integration_tests:
name: integration_tests
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: yarn

- name: test
run: yarn test
43 changes: 43 additions & 0 deletions .github/workflows/playwright.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: E2E

on:
push:
branches:
- main
- dev
pull_request:

jobs:
e2e_tests:
name: e2e_tests
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies of the frontend
run: yarn

- name: Install dependencies of the e2e tests
run: |
cd ./e2e
yarn
npx playwright install --with-deps
- name: Run Playwright tests
run: |
cd ./e2e
yarn test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
6 changes: 6 additions & 0 deletions e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ const testDir = defineBddConfig({
export default defineConfig({
testDir,
use: {
baseURL: 'http://localhost:5173/',
video: 'retain-on-failure',
screenshot: 'only-on-failure',
},
webServer: {
command: 'cd ../ && yarn dev',
url: 'http://localhost:5173/',
timeout: 1200000,
},
expect: {
timeout: 20000,
},
Expand Down

0 comments on commit 969e18a

Please sign in to comment.