Skip to content

Commit

Permalink
Merge pull request #157 from ansibleguy/fix-contrib-notes+alias-self
Browse files Browse the repository at this point in the history
add integration-test actions
  • Loading branch information
ansibleguy authored Feb 7, 2025
2 parents 8641b47 + 98b3eaf commit d2df1e9
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/integration_test_logs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---

name: Pull Integration-Test Logs

on:

Check warning on line 5 in .github/workflows/integration_test_logs.yml

View workflow job for this annotation

GitHub Actions / lint

5:1 [truthy] truthy value should be one of [false, no, true, yes]
schedule:
- cron: "24 6 * * *"

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 1

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Install dependencies
run: sudo apt install curl jq
shell: bash

- name: Pulling logs
run: curl https://ci.ansibleguy.net/api/job/ansible-test-collection-opnsense/logs?token=${{ secrets.CI_TOKEN_RO }} | jq > /tmp/test.log
shell: bash

- uses: actions/upload-artifact@v4
with:
name: integration-test-logs
path: /tmp/test.log
retention-days: 14
29 changes: 29 additions & 0 deletions .github/workflows/integration_test_run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---

name: Integration Tests

on: workflow_dispatch

Check warning on line 5 in .github/workflows/integration_test_run.yml

View workflow job for this annotation

GitHub Actions / lint

5:1 [truthy] truthy value should be one of [false, no, true, yes]

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 1

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Install dependencies
run: sudo apt install curl
shell: bash

- name: Starting Tests
run: curl -XPOST https://ci.ansibleguy.net/api/job/ansible-test-collection-opnsense?token=${{ secrets.CI_TOKEN_RW }}
shell: bash

- name: You can pull the current logs at this URL
run: >
echo "You can pull the current logs at this URL:"
echo " > https://ci.ansibleguy.net/api/job/ansible-test-collection-opnsense/tail?token=${{ secrets.CI_TOKEN_RO }}"

0 comments on commit d2df1e9

Please sign in to comment.