Skip to content

Commit ab71b3d

Browse files
cpng-1ngchongpeng
andauthored
Commit changes. (#1)
Co-authored-by: ngchongpeng <[email protected]>
1 parent 3b16e7d commit ab71b3d

File tree

1 file changed

+27
-41
lines changed

1 file changed

+27
-41
lines changed

.github/workflows/ci.yml

+27-41
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,42 @@
1-
name: Continuous Integration Workflow
1+
name: Continuous integration workflow
22

3-
# This workflow is triggered whenever a new PR is created on the main branch
43
on:
54
pull_request:
65
branches:
76
- main
8-
paths:
9-
- 'web/**'
10-
push:
11-
branches:
12-
- main
13-
paths:
14-
- 'web/**'
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
working-directory: ./web
1512

1613
jobs:
1714

18-
# Run unit tests to make sure everything is 👍
1915
test:
20-
name: 'Run unit tests'
21-
defaults:
22-
run:
23-
shell: bash
24-
# Define the working directory for all run steps in the workflow
25-
working-directory: ./web
26-
# Specify the OS we want the workflow to run on
16+
name: Run unit tests
2717
runs-on: ubuntu-latest
28-
# Define the steps for this job
2918
steps:
30-
- uses: actions/checkout@v2
31-
name: 'Checkout repository'
3219

33-
- name: 'Install Dependencies'
34-
run: npm install
35-
36-
- name: 'Run Tests'
37-
run: npm run test
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Run tests
27+
run: npm run test
3828

39-
# Run the linter to check for code style issues
4029
lint:
41-
name: 'Run linter'
42-
defaults:
43-
run:
44-
shell: bash
45-
# Define the working directory for all run steps in the workflow
46-
working-directory: ./web
30+
name: Run linter
4731
runs-on: ubuntu-latest
48-
steps:
49-
- uses: actions/checkout@v2
50-
name: 'Checkout repository'
51-
52-
- name: 'Install Dependencies'
53-
run: npm install
54-
55-
- name: 'Run Linter'
56-
run: npx standard -v
32+
steps:
33+
34+
- name: Checkout repository
35+
uses: actions/checkout@v2
36+
37+
- name: Install dependencies
38+
run: npm install
39+
40+
- name: Run linter
41+
run: npx standard -v
42+

0 commit comments

Comments
 (0)