Use sqlx and updates to use v3 schema #145

Merged
ashwinphatak merged 40 commits from pm-v3-db-changes into master 2022-04-19 10:45:17 +00:00
Showing only changes of commit 3118bf4964 - Show all commits

View File

@ -26,23 +26,31 @@ jobs:
- uses: actions/checkout@v2
# Passed experience with GHA has taught me to store variables in files instead of passing them as variables.
- name: Output variables
- name: Output variables to files
run: |
echo $GITHUB_REPOSITORY > /tmp/git_repository
echo $GITHUB_HEAD_REF > /tmp/git_head_ref
echo ${{ env.BUILD_KEY }} > /tmp/key
cat /tmp/git_repository
cat /tmp/git_head_ref
# echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin /tmp/git_repository {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_repository
# echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin /tmp/git_head_ref {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_head_ref
# echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin ./github/workflows/run_unit_test.sh {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/run_unit_test.sh
- name: Raw SCP
run: |
scp -i /tmp/key /tmp/git_repository {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_repository
scp -i /tmp/key /tmp/git_head_ref {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_head_ref
scp -i /tmp/key ./github/workflows/run_unit_test.sh {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/run_unit_test.sh
- name: SCP some files
uses: appleboy/scp-action@master
with:
host: ${{ env.BUILD_HOSTNAME }}
username: ${{ env.BUILD_USERNAME }}
key: ${{ env.BUILD_KEY }}
port: 22
source: "/tmp/git_repository,/tmp/git_head_ref,./github/workflows/run_unit_test.sh"
target: "/tmp/"
#- name: SCP some files
# uses: appleboy/scp-action@master
# with:
# host: ${{ env.BUILD_HOSTNAME }}
# username: ${{ env.BUILD_USERNAME }}
# key: ${{ env.BUILD_KEY }}
# port: 22
# source: "/tmp/git_repository,/tmp/git_head_ref,./github/workflows/run_unit_test.sh"
# target: "/tmp/"
- name: Trigger Unit Test
uses: appleboy/ssh-action@master