Skip to content

Commit 65bd320

Browse files
authored
Run daily test with Netbox feature branch (#28)
1 parent 304d194 commit 65bd320

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/feature-test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Test with Netbox feature branch
3+
4+
on:
5+
schedule:
6+
- cron: "35 07 * * *"
7+
workflow_dispatch:
8+
9+
jobs:
10+
feature-tests:
11+
runs-on: ubuntu-latest
12+
name: Run initializer test script
13+
steps:
14+
- id: git-checkout
15+
name: Checkout
16+
uses: actions/checkout@v3
17+
- id: code-update
18+
name: Change test target to feature branch of Netbox
19+
run: |
20+
sed -i '/max_version/d' src/netbox_initializers/__init__.py
21+
sed -i 's/v[0-9].[0-9]/feature/g' test/Dockerfile
22+
- id: test-script-1
23+
name: Test the initializers (First run)
24+
env:
25+
KEEP_VOLUMES: "true"
26+
run: |
27+
cd test
28+
./test.sh
29+
- id: test-script-2
30+
name: Test the initializers (Second run)
31+
run: |
32+
cd test
33+
./test.sh

0 commit comments

Comments
 (0)