-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 933 Bytes
/
Copy pathdeploy.yaml
File metadata and controls
40 lines (40 loc) · 933 Bytes
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
name: Deploy Project
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v6
- name: Install dependencies
run: npm ci
- name: Run test cases
run: npm run test
lint:
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v6
- name: Install dependencies
run: npm ci
- name: Check lint errors
run: npm run lint
build:
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v6
- name: Install dependencies
run: npm ci
- name: Prepare build
run: npm run build
deploy:
needs: [test, lint, build]
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v6
- name: Install dependencies
run: npm ci
- name: Deploy project
run: echo "Deploying...."