forked from devshawn/lab3-setup
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (29 loc) · 891 Bytes
/
e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: End-to-End
on: [push]
jobs:
ng-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Gradle artifacts (downloaded JARs, the wrapper, and any downloaded JDKs)
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/jdks
key: ${{ runner.os }}-gradle-${{ hashFiles('**/.gradle/') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: ./client/package-lock.json
- name: Run e2e tests
uses: cypress-io/github-action@v5
with:
start: ${{ github.workspace }}/server/gradlew run -p ${{ github.workspace }}/server/
command: npm run e2e
working-directory: ./client