3.1.0 #196
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - master | |
| - backport/* | |
| tags: | |
| - v*.*.* | |
| pull_request: | |
| jobs: | |
| linux-test: | |
| name: "test node ${{ matrix.node-version }} on linux" | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| npm_config_clang: 1 | |
| GYP_DEFINES: use_obsolete_asm=true | |
| DEBIAN_FRONTEND: "noninteractive" | |
| runs-on: ubuntu-22.04 | |
| container: ubuntu:22.04 | |
| strategy: | |
| matrix: | |
| node-version: [22] | |
| steps: | |
| - name: prerequisites | |
| run: | | |
| apt-get update | |
| apt-get install -y software-properties-common git build-essential clang libssl-dev libkrb5-dev libc++-dev wget python3 zlib1g-dev | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| check-latest: true | |
| - name: Test | |
| run: | | |
| set -xe | |
| mkdir ~/.ssh_tests | |
| chmod 700 ~/.ssh_tests | |
| printf "%b" "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh_tests/config | |
| cat test/id_rsa.pub > ~/.ssh_tests/id_rsa.pub | |
| cat test/id_rsa.enc | base64 -d > ~/.ssh_tests/id_rsa | |
| ls ~/.ssh_tests | |
| chmod 600 ~/.ssh_tests/id_rsa* | |
| git config --global user.name "John Doe" | |
| git config --global user.email [email protected] | |
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh_tests/id_rsa | |
| JOBS=2 npm install | |
| npm test | |
| mac-test: | |
| name: "test node ${{ matrix.node-version }} on ${{ matrix.runner }}" | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| npm_config_clang: 1 | |
| GYP_DEFINES: use_obsolete_asm=true | |
| strategy: | |
| matrix: | |
| node-version: [22] | |
| runner: ["macos-26", "macos-15-intel"] | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| check-latest: true | |
| - name: Test | |
| run: | | |
| set -xe | |
| mkdir ~/.ssh_tests | |
| chmod 700 ~/.ssh_tests | |
| printf "%b" "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh_tests/config | |
| cat test/id_rsa.pub > ~/.ssh_tests/id_rsa.pub | |
| cat test/id_rsa.enc | base64 -d > ~/.ssh_tests/id_rsa | |
| chmod 600 ~/.ssh_tests/id_rsa* | |
| git config --global user.name "John Doe" | |
| git config --global user.email [email protected] | |
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh_tests/id_rsa | |
| JOBS=2 npm install | |
| npm test | |
| linux-arm-test: | |
| name: "test node ${{ matrix.node-version }} on linux-arm" | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| npm_config_clang: 1 | |
| GYP_DEFINES: use_obsolete_asm=true | |
| CXXFLAGS: -std=c++17 | |
| runs-on: ubuntu-22.04-arm | |
| strategy: | |
| matrix: | |
| node-version: [22] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| check-latest: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y software-properties-common git build-essential clang libssl-dev libkrb5-dev libc++-dev wget python3 zlib1g-dev | |
| - name: Test | |
| run: | | |
| set -xe | |
| mkdir ~/.ssh_tests | |
| chmod 700 ~/.ssh_tests | |
| printf "%b" "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh_tests/config | |
| cat test/id_rsa.pub > ~/.ssh_tests/id_rsa.pub | |
| cat test/id_rsa.enc | base64 -d > ~/.ssh_tests/id_rsa | |
| chmod 600 ~/.ssh_tests/id_rsa* | |
| git config --global user.name "John Doe" | |
| git config --global user.email [email protected] | |
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh_tests/id_rsa | |
| JOBS=2 npm install | |
| npm test |