-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (51 loc) · 1.44 KB
/
main.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
- develop
jobs:
test:
runs-on: ubuntu-latest
container:
image: ${{needs.images-build.outputs.dataplatform-image-name-and-tag}}
options: --hostname test.local
steps:
- uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run unit tests
run: |
npm install
npm run build
npm run test
- name: Run e2e tests
run: |
sudo hostnamectl set-hostname test.local
sudo hostnamectl
hostname -f
sudo echo "127.0.0.1 KERBEROS.SERVER" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 kerberos.server" | sudo tee -a /etc/hosts
sudo apt-get install krb5-user
cd .docker
make build VERSION=2.3.6
make generate_ssl
sudo cp krb/krb5.conf /etc/krb5.conf
cd ..
env HOSTNAME=$(hostname -f) npm run e2e
- name: Coverage
run: |
npm run coverage -- -t ${{secrets.CODECOV_TOKEN}}
bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}}