Skip to content

Commit 2119bc1

Browse files
committed
Update tlighthouse-ci.yml simplify workflows
1 parent 07ce467 commit 2119bc1

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

.github/workflows/tlighthouse-ci.yml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@ on:
55
types: [synchronize, opened, reopened]
66
push:
77
branches: [main, development, dev-workflows]
8-
workflow_dispatch:
98

109
jobs:
11-
install:
10+
install-ubuntu:
1211
name: Install and Test
13-
concurrency: staging_environment
14-
1512
runs-on: ubuntu-latest
1613

17-
strategy:
18-
matrix:
19-
node-version: [20.x]
20-
2114
steps:
2215
- uses: actions/checkout@v3
2316

@@ -26,25 +19,36 @@ jobs:
2619

2720
- name: Test with Jest
2821
run: npm test
29-
30-
running:
31-
name: Install and Run
32-
concurrency: staging_environment
3322

23+
test-ubuntu:
24+
name: Test
25+
needs: install-ubuntu
3426
runs-on: ubuntu-latest
3527

36-
strategy:
37-
matrix:
38-
node-version: [20.x]
28+
steps:
29+
- name: Check out code
30+
uses: actions/checkout@v3
31+
32+
- name: Install Dependencies
33+
run: npm ci
34+
35+
- name: Testing with Jest
36+
run: npm test
37+
38+
running-ubuntu:
39+
name: Run
40+
needs: test-ubuntu
41+
runs-on: ubuntu-latest
3942

4043
steps:
41-
- uses: actions/checkout@v3
44+
- name: Check out code
45+
uses: actions/checkout@v3
46+
47+
- name: Install Dependencies
48+
run: npm ci
4249

4350
- name: Set up Chrome
4451
uses: browser-actions/setup-chrome@v1
45-
46-
- name: Install
47-
run: npm ci
4852

4953
- name: Running the program
5054
run: npm start

0 commit comments

Comments
 (0)