Adds action to install platform #246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Action | |
on: | |
- pull_request | |
- push | |
jobs: | |
Windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run local action (syntax only) | |
uses: ./ | |
with: | |
include: tests | |
syntax-only: true | |
verbose: true | |
- name: Run local action (compile) | |
uses: ./ | |
with: | |
include: tests | |
verbose: true | |
- name: Print compiled files | |
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname' | |
shell: powershell | |
Linux: | |
runs-on: ubuntu-latest | |
container: | |
image: ea31337/ea-tester:dev | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install platform | |
uses: dawidd6/action-ansible-playbook@v2 | |
with: | |
playbook: platform-install.yml | |
directory: ./ansible | |
configuration: | | |
[defaults] | |
nocows = false | |
stdout_callback = yaml | |
# Optional, SSH private key | |
key: ${{secrets.SSH_PRIVATE_KEY}} | |
# Optional, literal inventory file contents | |
inventory: | | |
[all] | |
localhost | |
requirements: galaxy-requirements.yml | |
# Optional, additional flags to pass to ansible-playbook | |
options: | | |
--limit group1 | |
--verbose | |
- name: Run local action (syntax only) | |
uses: ./ | |
with: | |
include: tests | |
syntax-only: true | |
verbose: true | |
- name: Run local action (compile) | |
uses: ./ | |
with: | |
include: tests | |
verbose: true |