-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (37 loc) · 988 Bytes
/
test.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
42
43
44
45
46
47
48
name: Testing Action
on: [push, pull_request]
jobs:
test_go:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.18.x
- name: Checkout code
uses: actions/checkout@v2
# - name: Test
# run: go test ./...
- name: build
run: go build -o main
test_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build Docker image
run: docker build --pull -t test .
- name: Test Docker image
run: docker image inspect test
test_action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Testing action
uses: ./
with:
playbook: tests/playbook.yml
inventory: tests/hosts.yml
galaxy_file: tests/requirements.yml
env:
ANSIBLE_HOST_KEY_CHECKING: "false"
ANSIBLE_DEPRECATION_WARNINGS: "false"