ssh-deploy/.github/workflows/example.yml

35 lines
614 B
YAML
Raw Normal View History

2022-12-29 17:46:56 +03:00
name: e2e Test
on:
push:
branches:
2022-12-29 17:51:02 +03:00
- feature/add-tests
2022-12-29 17:46:56 +03:00
env:
TEST_PROJECT: ./test_project
jobs:
host:
runs-on: ${{ matrix.os }}
2022-12-29 17:47:33 +03:00
2022-12-29 17:46:56 +03:00
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create ssh keys
run: |
ssh-keygen -m PEM -t rsa -b 4096
shell: bash
- name: Create project file
run: |
mkdir $TEST_PROJECT && cd $TEST_PROJECT
touch index.html
date +"%Y-%m-%d %H:%M:%S,%3N" >> index.html
cat index.html
shell: bash