chore(pre-commit): update push branch rule for pre-commit.yml #2404
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: ci-testing | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: test | |
| run: make test | |
| testacc: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| netbox-version: | |
| - v4.3.0 | |
| # - v4.3.1 # with this version, we get {"scope":["Please select a site."]} for prefixes | |
| - v4.3.2 | |
| - v4.3.3 | |
| - v4.3.4 | |
| - v4.3.5 | |
| - v4.3.6 | |
| - v4.3.7 | |
| - v4.4.0 | |
| - v4.4.1 | |
| - v4.4.2 | |
| # - v4.4.3 # this version cannot be spun up for testing due to TypeError: issubclass() arg 1 must be a class | |
| - v4.4.4 | |
| - v4.4.5 | |
| - v4.4.6 | |
| - v4.4.7 | |
| - v4.4.8 | |
| - v4.4.9 | |
| - v4.4.10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: testacc | |
| run: make -e testacc | |
| env: | |
| NETBOX_VERSION: ${{ matrix.netbox-version }} |