title | author |
---|---|
Introduction to GitHub Actions |
Part 1 of 3 in the [Build end-to-end CI/CD capabilities directly in GitHub](https://github.com/MSUSDEV/end-to-end-github-actions) series |
Presenter Name
☁️ Presenter Title
For questions or help with this series: [email protected]
All demos and source code available online:
- Session 1:
- ↪️ Introduction to GitHub Actions
- Session 2:
- Continuous integration using GitHub Actions
- Session 3:
- Deploy applications to Azure using GitHub Actions
- Learning the syntax
- Building a simple project
::: notes
on: push
on: push
jobs:
first-job:
on: push
jobs:
first-job:
steps:
- run: node --version
- run: npm --version
on: push
jobs:
first-job:
runs-on: ubuntu-latest
steps:
- run: node --version
- run: npm --version
on: push
jobs:
first-job:
runs-on: ubuntu-latest
container: node:12.18.4
steps:
- run: node --version
- run: npm --version
name: Test Node with Workflow
on: push
jobs:
first-job:
runs-on: ubuntu-latest
container: node:12.18.4
steps:
- run: node --version
- run: npm --version
name: Test Node with Workflow
on: push
jobs:
first-job:
runs-on: ubuntu-latest
container: node:12.18.4
steps:
- run: node --version
- run: npm --version
- run: npm install
name: Test Node with Workflow
on: push
jobs:
first-job:
runs-on: ubuntu-latest
container: node:12.18.4
steps:
- run: node --version
- run: npm --version
- uses: actions/checkout@v2
name: Test Node with Workflow
on: push
jobs:
first-job:
runs-on: ubuntu-latest
container: node:12.18.4
steps:
- run: node --version
- run: npm --version
- uses: actions/checkout@v2
- run: npm install
name: Test Node with Workflow
on: push
jobs:
first-job:
runs-on: ubuntu-latest
container: node:12.18.4
steps:
- run: node --version
- run: npm --version
- uses: actions/checkout@v2
- run: npm install
- run: node index.js
:::
::: notes
npm init --force
npm install --save-dev moment
touch index.js
{
"name": "app",
"version": "1.0.0",
"main": "index.js",
"devDependencies": {
"moment": "^2.29.1"
}
}
var moment = require('moment');
var date = moment().format('LL');
console.log(date);
node_modules/
package-lock.json
:::
- Learning the syntax
- Building a simple project
- GitHub Lab
- https://docs.github.com/actions/learn-github-actions/introduction-to-github-actions#understanding-the-workflow-file
- https://hub.docker.com/_/node
- https://github.com/actions/checkout
https://lab.github.com/msusdev/build-end-to-end-cicd-capabilities-directly-in-github