-
-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (47 loc) · 1012 Bytes
/
commands.yml
File metadata and controls
57 lines (47 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: commands
on: push
jobs:
commands:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: cd
shell: bash
run: cd
- name: echo
shell: bash
run: echo hello
- name: find
shell: bash
run: find .
- name: ls
shell: bash
run: ls
- name: mv
shell: bash
run: |
touch foo
mv foo bar
- name: sed
shell: bash
run: |
echo hello > file.txt
sed 's/h/j/' file.txt
- name: source
shell: bash
run: |
python -m venv .venv
source $(find .venv -type f -name activate)
- name: zip
if: matrix.os != 'windows-latest'
run: |
touch file.txt
zip archive.zip file.txt
- name: zip
if: matrix.os == 'windows-latest'
# shell: powershell
run: |
touch file.txt
Compress-Archive -Path file.txt -Destination archive.zip