We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76e9912 commit 1e9b745Copy full SHA for 1e9b745
.github/workflows/tests.yaml
@@ -0,0 +1,33 @@
1
+name: Run Jest Puppeteer Tests
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v3
15
16
+ - name: Setup Node.js
17
+ uses: actions/setup-node@v3
18
+ with:
19
+ node-version: 18
20
21
+ - name: Install dependencies
22
+ run: npm install
23
24
+ - name: Set BASE_URL environment variable
25
+ run: |
26
+ BRANCH_NAME=$(echo "${GITHUB_REF##*/}")
27
+ BASE_URL="https://${BRANCH_NAME}--adobe.aem.live/"
28
+ echo "BASE_URL=${BASE_URL}" >> $GITHUB_ENV
29
30
+ - name: Run Jest Puppeteer tests
31
+ run: npm test
32
+ env:
33
+ BASE_URL: ${{ env.BASE_URL }}
0 commit comments