-
Notifications
You must be signed in to change notification settings - Fork 22
33 lines (33 loc) · 1.03 KB
/
ci.yml
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
name: tribeapp-frontend-ci
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install -g @ionic/cli
- run: npm install -g @angular/cli
- run: npm install
- run: cp src/app/_environments/environment.dev.ts src/app/_environments/environment.ts
- run: ng test --no-watch --no-progress --code-coverage --browsers ChromeHeadless
- uses: actions/upload-artifact@v2
with:
name: coverage-report
path: coverage
# cypress-run:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# Copy environment.dev.ts to environment.ts
# - name: Copy environment.dev.ts
# run: cp ./src/app/_environments/environment.dev.ts ./src/app/_environments/environment.ts
# steps:
# - name: Cypress run
# uses: cypress-io/github-action@v5
# with:
# build: npm run build
# start: npm start