-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.33 KB
/
simple.yml
File metadata and controls
43 lines (40 loc) · 1.33 KB
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
name: Shell Commands
# A single event or An array of events. The VScode plugin will autogenerate the events available.
on: [push]
jobs:
run-shell-command:
runs-on: ubuntu-latest
# The maximum number of minutes the job can take
timeout-minutes: 360
steps:
- name: echo a string
run: echo "hello"
# This indicates if there's an error, continue running subsequent steps regardless.
continue-on-error: true
# The maximum number of minutes before github will cancel a step
timeout-minutes: 5
- name: echo another string
run: echo "goodbye"
- name: multiline script
# The pipeline symbol allows us to run multiple commands
run: |
node -v
npm -v
# This would indicate if there was a failure, this step should run
# if: failure()
- name: python Commands
run: |
import platform
print(platform.processor())
shell: python
run-windows-commands:
runs-on: windows-latest
# You can specify one or more dependency jobs using 'needs'
needs: ["run-shell-command"]
steps:
- name: Directory Powershell
run: Get-Location
- name: Directory Bash
run: pwd
# Specify a different shell than the default (powershell) shell
shell: bash