Skip to content

Commit d1af35c

Browse files
committed
updated slides and demos
1 parent ff7d572 commit d1af35c

38 files changed

Lines changed: 6711 additions & 96 deletions
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Setup Node Project'
2+
description: 'Checkout code, setup Node.js, and install dependencies'
3+
inputs:
4+
node-version:
5+
description: 'Node.js version to use'
6+
required: false
7+
default: '22.x'
8+
working-directory:
9+
description: 'Working directory for the project'
10+
required: false
11+
default: 'node-example'
12+
13+
runs:
14+
using: 'composite'
15+
steps:
16+
- uses: actions/checkout@v6.0.2
17+
18+
- name: Setup Node.js ${{ inputs.node-version }}
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version: ${{ inputs.node-version }}
22+
23+
- name: Install dependencies
24+
shell: bash
25+
working-directory: ${{ inputs.working-directory }}
26+
run: npm ci

.github/dependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "github-actions" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
- package-ecosystem: "npm"
13+
directory: "/node-example"
1014
schedule:
1115
interval: "weekly"

.github/workflows/00-basic.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This is a basic workflow to help you get started with Actions
2+
# NOTE: Production workflows should include a permissions: block for least privilege.
23

3-
name: 00 Basic Workflow
4+
name: 00 - Basic Workflow
45

56
# Controls when the workflow will run
67
on: [push, pull_request, workflow_dispatch]

.github/workflows/00a-basic-filters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: 00 Basic Workflow
3+
name: 00a - Event Filters
44

55
# Controls when the workflow will run
66
on:

.github/workflows/01-basic-multiple-jobs.yml renamed to .github/workflows/01-multiple-jobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: 01 Basic Workflow with Multiple Jobs
3+
name: 01 - Multiple Jobs
44

55
# Controls when the workflow will run
66
on:

.github/workflows/02-basic-multiple-jobs-needs.yml renamed to .github/workflows/02-job-dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: 02 Basic Dependencies
3+
name: 02 - Job Dependencies
44

55
# Controls when the workflow will run
66
on:
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
# Runs a single command using the runners shell
3333
- name: Run a one-line script
34-
run: echo Hello from job1
34+
run: echo Hello from job1a
3535
job2:
3636
# The type of runner that the job will run on
3737
runs-on: ubuntu-latest

.github/workflows/03-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: 03 Steps
3+
name: 03 - Steps and Shells
44

55
# Controls when the workflow will run
66
on:
@@ -56,4 +56,4 @@ jobs:
5656
# Reference a specific version
5757
- uses: actions/checkout@v6.0.2
5858
# Reference a branch
59-
- uses: actions/checkout@main
59+
- uses: actions/checkout@main # ⚠️ unpinned - demo only, do not use in production

.github/workflows/04-environment-variables.yaml renamed to .github/workflows/04-environment-variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: 04 Variables
3+
name: 04 - Environment Variables
44

55
# Controls when the workflow will run
66
on:

.github/workflows/04-environment-variables2.yaml renamed to .github/workflows/04a-variable-hierarchy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: 04 Variable Hierarchy
3+
name: 04a - Variable Hierarchy
44

55
# Controls when the workflow will run
66
on:

.github/workflows/05-conditionals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: 05 Conditionals
3+
name: 05 - Conditionals
44

55
# Controls when the workflow will run
66
on:

0 commit comments

Comments
 (0)