storyly-web 2.16.0 → 2.16.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ name: CI/CD Pipeline
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ build_and_upload:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+
14
+ - name: Install Dependencies (adjust for your package manager)
15
+ run: |
16
+ # Assuming you use yarn, adjust for npm if needed
17
+ yarn
18
+
19
+ - name: Build
20
+ run: yarn build
21
+
22
+ - name: Upload to S3 with Caching (optional)
23
+ uses: jakejarvis/s3-sync-action@master
24
+ with:
25
+ args: '--acl public-read'
26
+
27
+ env:
28
+ AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
29
+ AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
30
+ AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
31
+ SOURCE_DIR: ./dist
32
+
33
+ run-tests:
34
+ runs-on: ubuntu-latest
35
+ needs: build_and_upload # This line makes the second job wait for the first
36
+ steps:
37
+ - name: Checkout repository
38
+ uses: actions/checkout@v2
39
+
40
+ - name: Cypress run
41
+ uses: cypress-io/github-action@v6
42
+
43
+ - name: Check test results
44
+ run: |
45
+ if [ ${{ steps.run-tests.outcome }} == 'failure' ]; then
46
+ echo "Tests failed. PR cannot be merged."
47
+ exit 1
48
+ else
49
+ echo "Tests passed. PR can be merged."
50
+ fi
@@ -0,0 +1,2 @@
1
+ **/*.cy.ts
2
+
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from 'cypress';
2
+
3
+ export default defineConfig({
4
+ e2e: {
5
+ setupNodeEvents(on, config) {
6
+ // implement node event listeners here
7
+ },
8
+ },
9
+ });