Skip to content

✅ add test by host #7

✅ add test by host

✅ add test by host #7

Workflow file for this run

name: Run tests
on:
pull_request:
branches:
- "main"
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
environment: test_ci
strategy:
matrix:
go-version: [ '1.22' ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Install dependencies for container
run: cd docker && go get . && cd -
- name: Run tests for container
run: cd docker && go test && cd -
environment:

Check failure on line 27 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Run tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 27, Col: 9): Unexpected value 'environment'
NETBOX_URL: ${{ secrets.NETBOX_URL }}
NETBOX_TOKEN: ${{ secrets.NETBOX_TOKEN }}