Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtong76 committed Mar 7, 2025
1 parent 3502f81 commit 17fb1c4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/exe-2-2-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Multi-Shell Environment Exercise
on: [push]

jobs:
multi-shell-job:
runs-on: windows-latest
steps:
- name: Bash - System Information
shell: bash
run: uname -a

- name: PowerShell - Computer Information
shell: pwsh
run: |
Get-ComputerInfo
# $PSVersionTable
# Get-Host | Select-Object Version
- name: Python - Version Information
shell: python
run: |
import sys
print(sys.version)
- name: Node.js - Version Information
shell: node {0}
run: |
console.log(process.version)
16 changes: 16 additions & 0 deletions .github/workflows/exe-2-2-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Directory Navigation Exercise
on: [push]

jobs:
directory-navigation:
runs-on: ubuntu-latest
steps:
- name: Create test_folder in /home/runner
run: mkdir -p /home/runner/test_folder

- name: Create sample.txt file
run: echo "This is a sample text file created by GitHub Actions" > /home/runner/test_folder/sample.txt

- name: Check file content
working-directory: /home/runner/test_folder
run: cat sample.txt

0 comments on commit 17fb1c4

Please sign in to comment.