Skip to content

Commit 20af5e5

Browse files
committed
Remove redundant jobs
1 parent 6c3fd4c commit 20af5e5

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

.github/workflows/github-ci.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,7 @@ name: Run Tests
33
on: [pull_request]
44

55
jobs:
6-
cache_node_modules:
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- name: Checkout repository code
11-
uses: actions/checkout@v2
12-
13-
- name: Cache node_modules
14-
id: cache-node-modules
15-
uses: actions/cache@v2
16-
with:
17-
path: node_modules
18-
key: node_modules-${{ hashFiles('package-lock.json') }}
19-
20-
- name: Install dependencies
21-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
22-
run: npm install
23-
246
test_lints:
25-
needs: cache_node_modules
267
runs-on: ubuntu-latest
278

289
steps:
@@ -47,7 +28,6 @@ jobs:
4728
run: npm run test:js
4829

4930
test_cypress:
50-
needs: cache_node_modules
5131
runs-on: ubuntu-latest
5232

5333
steps:
@@ -57,17 +37,6 @@ jobs:
5737
- name: Run backend container
5838
run: docker-compose -f "docker-compose.test.yml" up -d --build
5939

60-
- name: Load node_modules
61-
id: cache-node-modules
62-
uses: actions/cache@v2
63-
with:
64-
path: node_modules
65-
key: node_modules-${{ hashFiles('package-lock.json') }}
66-
67-
- name: Install node_modules
68-
if: steps.cache-node-modules.outputs.cache-hit != 'true'
69-
run: npm install
70-
7140
- name: Create config.json
7241
run: echo $TEST_CONFIG_JSON > src/config.json
7342
env:
@@ -77,3 +46,4 @@ jobs:
7746
uses: cypress-io/github-action@v2
7847
with:
7948
start: npm start
49+
wait-on: 'http://localhost:3000'

0 commit comments

Comments
 (0)