Skip to content

test: SshnpdChannel #246

test: SshnpdChannel

test: SshnpdChannel #246

Workflow file for this run

name: unit_tests
permissions:
contents: read
on:
workflow_dispatch:
push:
branches:
- trunk
pull_request:
branches:
- trunk
jobs:
cli_tags:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./.github/composite/verify_cli_tags
noports_core-unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d # v1.6.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 'stable'
- name: dart pub get
working-directory: packages/noports_core
run: dart pub get
- name: dart analyze
working-directory: packages/noports_core
run: dart analyze
- name: dart test
working-directory: packages/noports_core
run: dart test
# Runs osv-scanner to find any vulnerable Dart dependencies
# It needs to look at pubspec.lock files, which is why it's
# placed here, as the `dart pub get` above will create them
- name: Run osv-scanner
working-directory: packages
run: |
go install github.com/google/osv-scanner/cmd/osv-scanner@6316373e47d7e3e4b4fd3630c4bbc10987738de6 # v1.4.3
osv-scanner --lockfile=./sshnoports/pubspec.lock
osv-scanner --lockfile=./sshnp_gui/pubspec.lock
osv-scanner --lockfile=./noports_core/pubspec.lock