Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

Commit f0b5878

Browse files
authored
improve ci (#11)
1 parent 641e05a commit f0b5878

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

.github/workflows/integration.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
integration-test:
1010
name: Integration test using Python ${{ matrix.python-version }}
1111
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: ansible_collections/ngine_io/vultr
1215
strategy:
1316
fail-fast: false
1417
matrix:
@@ -19,7 +22,7 @@ jobs:
1922
- 2.7
2023
steps:
2124
- name: Check out code
22-
uses: actions/checkout@v1
25+
uses: actions/checkout@v2
2326
with:
2427
path: ansible_collections/ngine_io/vultr
2528

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,24 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: ansible_collections/ngine_io/vultr
1013
steps:
11-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v2
15+
with:
16+
path: ansible_collections/ngine_io/vultr
17+
1218
- name: Set up Python
13-
uses: actions/setup-python@v1
19+
uses: actions/setup-python@v2
1420
with:
1521
python-version: '3.x'
22+
1623
- name: Install dependencies
1724
run: |
1825
python -m pip install --upgrade pip
1926
pip install ansible
27+
2028
- name: Build and publish
2129
env:
2230
ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}

.github/workflows/sanity.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,26 @@ on:
55
jobs:
66
sanity:
77
name: Sanity (${{ matrix.ansible }})
8+
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
working-directory: ansible_collections/ngine_io/vultr
812
strategy:
913
matrix:
1014
ansible:
1115
- stable-2.10
1216
- stable-2.9
1317
- devel
14-
runs-on: ubuntu-latest
1518
steps:
16-
1719
- name: Check out code
18-
uses: actions/checkout@v1
20+
uses: actions/checkout@v2
1921
with:
2022
path: ansible_collections/ngine_io/vultr
2123

22-
- name: Set up Python 3.6
23-
uses: actions/setup-python@v1
24+
- name: Set up Python
25+
uses: actions/setup-python@v2
2426
with:
25-
python-version: 3.6
27+
python-version: '3.x'
2628

2729
- name: Install ansible-base (${{ matrix.ansible }})
2830
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

0 commit comments

Comments
 (0)