feat: allocation of IP addresses for SMF #549
This file contains 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: Test | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Raw UPF Presetup | |
uses: ./.github/actions/raw-upf-presetup | |
id: raw-upf-presetup | |
- name: Go mod tidy | |
run: go mod tidy | |
- name: Go vet main | |
run: go vet ./cmd/... | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
working-directory: ./cmd | |
- name: Run tests | |
run: sudo go test -v ./cmd/... | |
- name: Build | |
run: go build -v -o bin/eupf ./cmd | |
- name: Run eUPF and sleep | |
run: sudo ./bin/eupf & | |
- name: Install pytest and SCAPY | |
run: sudo pip install pytest scapy | |
- name: Run pytest | |
run: sudo pytest -v ./pytest/test_session.py | |
- name: Stop eUPF | |
run: sudo killall eupf |