chore(deps): update dependency nethserver/nethsecurity-ui to v2.14.0 … #309
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
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| api: | |
| name: API Tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Podman | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y podman oathtool | |
| - name: Start TimescaleDB | |
| run: | | |
| podman run --rm -d --name timescaledb -p 5432:5432 -e POSTGRES_PASSWORD=password -e POSTGRES_USER=report timescale/timescaledb:latest-pg16 | |
| # Wait for DB to be ready | |
| for i in {1..30}; do | |
| podman exec timescaledb pg_isready -U report && break | |
| sleep 1 | |
| done | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25.7' | |
| - name: Test with the Go CLI | |
| run: cd api && go test ./... -coverpkg=./... -coverprofile=coverage.out -v | |
| smoke: | |
| name: Smoke Tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y podman buildah jq | |
| - name: Create tunsec device | |
| run: | | |
| sudo ip tuntap add dev tunsec mod tun | |
| sudo ip addr add 172.21.0.1/16 dev tunsec | |
| sudo ip link set dev tunsec up | |
| - name: Run smoke test | |
| run: ./test/smoke.sh |