Skip to content

Commit

Permalink
change workflow to list vm details
Browse files Browse the repository at this point in the history
  • Loading branch information
adilhusain-s committed Sep 29, 2023
1 parent 7ecf180 commit ade06f9
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/check.yml
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

0 comments on commit ade06f9

Please sign in to comment.