-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ecf180
commit ade06f9
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,35 @@ | ||
name: Sample Workflow | ||
name: list vm details | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
jobs: | ||
test_job: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, ubuntu-20.04-ppc64le] | ||
os: [ubuntu-latest, ubuntu-20.04] | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} | ||
steps: | ||
- name: list vm details | ||
run: | | ||
nproc | ||
df -H | ||
free -H | ||
- name: Run commands | ||
run: | | ||
uname -a | ||
arch | ||
echo "sleeping for 5 minutes..." | ||
sleep 5m | ||
echo "wake up..." | ||
- name: List Installed Packages | ||
run: | | ||
dpkg-query -W -f='${Package}\n' > installed-packages.txt | ||
shell: bash | ||
|
||
- name: Upload Installed Packages | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: installed-packages | ||
path: installed-packages.txt |