This repository has been archived on 2024-10-20. You can view files and clone it, but cannot push or open issues or pull requests.
Wireguard-tools.js/.gitlab-ci.yml
Matheus Sampaio Queiroga a399f89350
Migrate tests to node test and Add key gen in node
I'm adding key generation to pure Javascript, port of `keygen-html`.

I'm also migrating the mocha tests to the Node tests runner.

I solved a typescript typing problem

add gitea CI/CD

Gitlab CI/CD and Github Actions update test
2024-01-14 15:18:29 -03:00

24 lines
1.0 KiB
YAML

image: node:lts
test:
stage: test
image: ghcr.io/catthehacker/ubuntu:act-latest
script:
- |
echo "Host arch: $(uname -m)"
export DEBIAN_FRONTEND=noninteractive
sudo apt update
wget -qO- https://deb.nodesource.com/setup_current.x | sudo bash -
packages=( "binutils-multiarch" "wget" "curl" "nodejs" );
if [[ $(uname -m) == "x86_64" ]];then
packages+=( "gcc-*aarch64-linux-gnu" "gcc-*aarch64-linux-gnu-base" "g++-*aarch64-linux-gnu" "libc6-arm64-cross" )
else
packages+=( "libc6-amd64-cross" "g++-*x86-64-linux-gnu" "g++-*x86-64-linux-gnux32" "gcc-*x86-64-linux-gnu" "gcc-*x86-64-linux-gnux32" )
if [[ $(uname -m) != "aarch64" ]];then
packages+=( "gcc-*aarch64-linux-gnu" "gcc-*aarch64-linux-gnu-base" "g++-*aarch64-linux-gnu" "libc6-arm64-cross" )
fi
fi
sudo apt install -y ${packages[@]}
- npm install --no-save --ignore-scripts
- npm run prebuildify -- -v
- sudo node --require ts-node/register --loader ts-node/esm ./src/index_test.ts