Skip to content

Merge pull request #64 from lenchv/patch/update-modules #77

Merge pull request #64 from lenchv/patch/update-modules

Merge pull request #64 from lenchv/patch/update-modules #77

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
- develop
jobs:
test:
runs-on: ubuntu-latest
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 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}}