-
-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (33 loc) · 962 Bytes
/
feature-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
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