forked from eatvio/eatvio-infra
35 lines
705 B
YAML
35 lines
705 B
YAML
name: "infra 0.0.0.1"
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
name: Test
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
repository: eatvio/eatvio
|
|
path: app
|
|
token: ${{ vars.MY_INFRA }}
|
|
|
|
# - name: Add the SSH key to known_hosts
|
|
# env:
|
|
# SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
|
# run: |
|
|
# ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
|
# ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
|
|
|
|
- name: init containers
|
|
# env:
|
|
# SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
|
run: make init
|
|
|
|
- name: run CI
|
|
run: make ci
|
|
|