-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 934 Bytes
/
tests.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
36
37
38
39
40
41
---
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
name: Action testing
'on':
push:
branches: [main]
pull_request:
branches: [main]
# Run once per week (Friday at 07:00 UTC)
schedule:
- cron: '0 7 * * 5'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install ansible-core
run: pip install ansible-core
- name: Build collection
run: ansible-galaxy collection build
working-directory: tests/foo.bar
- name: Run action
id: action
uses: ./
with:
artifact-path: tests/foo.bar/foo-bar-1.2.3.tar.gz