Skip to content

Commit

Permalink
wonderful
Browse files Browse the repository at this point in the history
  • Loading branch information
bauergeorg committed Feb 16, 2021
1 parent e02e00e commit 3fa359d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/actions/my-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh -l

echo "--------- Print Version ---------"
python3 --version
echo "--------- Show version information of docker container ---------"
cat /etc/os-release
echo "--------- Run Test ---------"
python3 --version
echo "--------- Run test at docker container ---------"
python3 test.py
23 changes: 9 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,25 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs some prints
- name: Show version
- name: Show version information of vm
run: |
python3 --version
cat /etc/os-release
python3 --version
# Checks-out your repository under $GITHUB_WORKSPACE
- name: Check out repository
uses: actions/checkout@v2
# Use own action: uses an own docker container created by a dockerfile
# Use own action: uses an own docker container created by a dockerfile with entrypoint.sh
- name: Run docker container with test.py
uses: ./.github/actions/my-action
# Runs some prints
- name: Show version
run: |
python3 --version
cat /etc/os-release
# Runs a test job
# Runs a test job at VM
- name: Run test
run: python3 test.py
# build job
# Runs a build job
- name: Build job
run: python3 build.py
# Build job
- name: Upload result of build job
uses: actions/upload-artifact@v2
with:
name: output
path: myfile.txt
# Runs a test job
- name: Run test
run: python3 test.py
path: myfile.txt

0 comments on commit 3fa359d

Please sign in to comment.