-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.17 KB
/
deploy-joke-cracker-generator.yml
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
# This GitHub Actions workflow automates the deployment process for the Inspiring Quote Generator application.
# It is triggered on push events to the main branch and includes the following steps:
# 1. Checkout the repository.
# 2. Set up the Node.js environment.
# 3. Install dependencies using npm.
# 4. Run tests to ensure code quality.
# 5. Build the application.
# 6. Deploy the application to the specified hosting service.
name: Deploy Joke Cracker Generator
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run Gitleaks to detect sensitive data
uses: zricethezav/gitleaks-action@v1.2.0
with:
config_path: .gitleaks.toml
args: "--path . --verbose"
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Build project
run: npm run build