Test with Netbox feature branch #215
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 with Netbox feature branch | |
on: | |
schedule: | |
- cron: "35 07 * * *" | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
feature-tests: | |
runs-on: ubuntu-latest | |
name: Run initializer test script | |
steps: | |
- id: git-checkout | |
name: Checkout | |
uses: actions/checkout@v4 | |
- id: code-update | |
name: Change test target to feature branch of Netbox | |
run: | | |
sed -i '/max_version/d' src/netbox_initializers/__init__.py | |
sed -i '/min_version/d' src/netbox_initializers/__init__.py | |
sed -i 's/FROM netboxcommunity\/netbox:v[0-9].[0-9]/FROM netboxcommunity\/netbox:feature/g' test/Dockerfile | |
- id: test-script-1 | |
name: Test the initializers (First run) | |
env: | |
KEEP_VOLUMES: "true" | |
run: | | |
cd test | |
./test.sh | |
- id: test-script-2 | |
name: Test the initializers (Second run) | |
run: | | |
cd test | |
./test.sh |