File tree Expand file tree Collapse file tree
content/actions/get-started Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- ---
2- title : Get started with GitHub Actions
3- shortTitle : Get started
4- intro : Learn the basics of GitHub Actions.
5- versions :
6- fpt : ' *'
7- ghes : ' *'
8- ghec : ' *'
9- children :
10- - /quickstart
11- - /understand-github-actions
12- - /continuous-integration
13- - /continuous-deployment
14- - /actions-vs-apps
15- redirect_from :
16- - /actions/about-github-actions
17- - /actions/concepts/overview
18- ---
1+ name: Node.js CI/CD Workflow
2+
3+ on:
4+ push:
5+ branches:
6+ - main
7+ pull_request:
8+ branches:
9+ - main
10+
11+ jobs:
12+ build:
13+ runs-on: ubuntu-latest
14+ strategy:
15+ matrix:
16+ node-version: [ 20.x]
17+
18+ steps:
19+ - name: Checkout repository
20+ uses: actions/checkout@v3
21+
22+ - name: Set up Node.js
23+ uses: actions/setup-node@v3
24+ with:
25+ node-version: ${{ matrix.node-version }}
26+
27+ - name: Install dependencies
28+ run: npm install
29+
30+ - name: Start application
31+ run: npm start
You can’t perform that action at this time.
0 commit comments