Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
pwd
ls -a

- name: hellow world js actions
- name: hello world js actions
id: greet # if wee need to reference a step in another it should be given an id

# reference to an action; here we're using an action that is published on public github repo.
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: container
on: push
jobs:
docker-steps:
runs-on: ubuntu-latest
container:
image: node:13.5.0-alpine3.10
steps:
- name: log node version
run: |
node -v
cat /etc/os-release
- name: step with docker-steps
uses: docker://node:12.14.1-alpine3.10
with:
entrypoint: '/bin/echo'
args: 'Hello world'
- name: step with docker-steps
uses: docker://node:12.14.1-alpine3.10
with:
entrypoint: '/usr/local/bin/node'
args: -v
- uses: actions/checkout@v1 # we need to clone the repo inorder to have access to the script file we're to execute
- name: step with docker-steps
uses: docker://node:12.14.1-alpine3.10
with:
entrypoint: ./script.sh
args: "some string"
- name: send a slack message
uses: docker://technosophos/slack-notify
env:
SLACK_WEBHOOK: ${{secrets.SLACK_WEBHOOK}}
SLACK_MESSAGE: "Hello from my github actions"


4 changes: 2 additions & 2 deletions .github/workflows/context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
echo ${{contains('hello','li')}}
echo ${{startsWith('hello','he')}}
echo ${{format('Hello {0} {1} {2}','World','!','!')}}
eccho "this step is intentionally to fail in order to test functions"
echo "this step is intentionally to fail in order to test functions"
- name: test failure functions
if: failure()
run: echo "previous step failed but we able to execute this step by adding failure() function"
- name: run after previous filure
- name: run after previous failure
if: always()
run: echo "previous step filed but this step was run"
one:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: matrix
on: push
jobs:
node-version:
strategy:
matrix:
node_version: [6,8,10]
os: [macos-latest,ubuntu-latest, windows-latest]
exclude:
- os: ubuntu-latest
node_version: 6
- os: macos-latest
node_version: 8
include:
- os: ubuntu-latest
node_version: 8
is_ubuntu_8: "true"

runs-on: ${{matrix.os}}
env:
IS_UBUNTU_8: ${{matrix.is_ubuntu_8}}
steps:
- name: test is_ubuntu_8
run: echo $IS_UBUNTU_8
# first we want to look at the installed node js on the vm
- name: log node node-version
run: node -v

# we are setting up node version 6 for this step
- uses: actions/setup-node@v1
with:
node-version: ${{matrix.node_version}}
# see version after setup
- name: log node version again
run: node -v
17 changes: 0 additions & 17 deletions matrix.yml

This file was deleted.

6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading