Skip to content

Commit

Permalink
set-up UT
Browse files Browse the repository at this point in the history
  • Loading branch information
anh-bolt committed Aug 15, 2024
1 parent 0eb0bc7 commit 58f61fc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
sudo apt install openssh-server
sudo sh -c 'echo "ChallengeResponseAuthentication no" >> /etc/ssh/sshd_config'
sudo sh -c 'echo "PasswordAuthentication no" >> /etc/ssh/sshd_config'
sudo sh -c 'echo "\nMatch User usr2" >> /etc/ssh/sshd_config'
sudo sh -c 'echo "\tPasswordAuthentication yes" >> /etc/ssh/sshd_config'
sudo sh -c 'echo "\nMatch User All" >> /etc/ssh/sshd_config'
sudo sh -c 'echo "\tPasswordAuthentication no" >> /etc/ssh/sshd_config'
sudo systemctl enable ssh
sudo systemctl start ssh
Expand All @@ -53,9 +57,12 @@ jobs:
sudo cat ~/.ssh/sftptest.pub >> /home/usr/.ssh/authorized_keys
sudo chown -R usr:${sshGroup} /home/usr/.ssh
sudo chmod -R 700 /home/usr/.ssh
sudo chmod 664 /home/usr/.ssh/authorized_keys
sudo chmod 600 /home/usr/.ssh/authorized_keys
cp ~/.ssh/sftptest ${GITHUB_WORKSPACE}/sftp-connector-test/src_test/com/axonivy/connector/sftp/test/sftptest
echo "adding user 2 to group ${sshGroup}"
sudo useradd -s /bin/bash -d /home/usr2 -m -g ${sshGroup} -p $(echo pwd | openssl passwd -1 -stdin) usr2
- name: Setup Maven
uses: stCarolas/setup-maven@v5
with:
Expand All @@ -64,14 +71,19 @@ jobs:
- name: Build with Maven
run: mvn clean verify --batch-mode --fail-at-end ${{ inputs.mvnArgs }}

- name: Auth Log
if: always()
run:
sudo cat /var/log/auth.log

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
junit_files: |
*/target/*-reports/*.xml
!*/target/*-reports/failsafe-summary.xml
- name: Archive build artifact
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Dev-Build

on:
push:
# push:
schedule:
- cron: '21 21 * * *'
workflow_dispatch:
Expand Down

0 comments on commit 58f61fc

Please sign in to comment.