Skip to content

Commit da0177c

Browse files
author
dbale-altoros
committed
e2e tests config
1 parent 9971cca commit da0177c

23 files changed

+562
-264
lines changed

.github/workflows/E2E.yml

Lines changed: 16 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -6,55 +6,25 @@ on:
66
- master
77
pull_request:
88
branches:
9-
- "*"
9+
- '*'
1010

1111
jobs:
1212
e2e_linux:
1313
runs-on: ubuntu-latest
1414
name: Test on Linux with Node ${{ matrix.node }}
1515
strategy:
1616
matrix:
17-
node: [16, 18, 20]
18-
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-node@v3
22-
with:
23-
node-version: ${{ matrix.node }}
24-
25-
- name: Install dependencies
26-
run: npm install --include=dev
27-
28-
- name: Run linter
29-
run: npm run lint
30-
31-
- name: Generate Docs
32-
run: npm run docs
33-
34-
- name: Pack
35-
run: npm pack
36-
37-
- name: Global Installation
38-
run: npm i -g solhint*tgz
17+
node: [20]
3918

40-
- name: Check solhint version
41-
run: solhint --version
42-
43-
- name: Run E2E Tests
44-
run: cd e2e && npm install && npm test
4519

46-
e2e_windows:
47-
runs-on: windows-latest
48-
name: Test on Windows
20+
env: # Define environment variables here
21+
NO_CACHE: true # Set NO_CACHE to true
4922

5023
steps:
51-
- name: Enable Debugging
52-
run: |
53-
echo "::debug::Debugging enabled"
5424
- uses: actions/checkout@v3
5525
- uses: actions/setup-node@v3
5626
with:
57-
node-version: 18
27+
node-version: ${{ matrix.node }}
5828

5929
- name: Install dependencies
6030
run: npm install --include=dev
@@ -69,41 +39,21 @@ jobs:
6939
run: npm pack
7040

7141
- name: Global Installation
72-
run: npm i -g @(Get-ChildItem -Filter *.tgz)
42+
run: npm i -g solhint*tgz
7343

7444
- name: Check solhint version
7545
run: solhint --version
7646

77-
- name: List directory contents
78-
run: dir
79-
80-
- name: Run linter
81-
run: npm run lint
47+
# Configure caching with exclusion
48+
- name: Cache with exclusion
49+
id: cache
50+
uses: actions/cache@v2
51+
with:
52+
path: |
53+
~/.npm
54+
~/.cache
55+
!tmp/solhint-tests-08-autofix
56+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
8257

8358
- name: Run E2E Tests
8459
run: cd e2e && npm install && npm test
85-
86-
e2e_macos:
87-
runs-on: macos-latest
88-
name: Test on MacOS
89-
90-
steps:
91-
- uses: actions/checkout@v3
92-
- uses: actions/setup-node@v3
93-
with:
94-
node-version: 18
95-
96-
- name: Install dependencies
97-
run: npm install --include=dev
98-
99-
- name: Pack
100-
run: npm pack
101-
102-
- name: Install solhint
103-
run: npm i -g solhint*tgz
104-
105-
- name: Run linter
106-
run: npm run lint
107-
108-
- name: Run Tests
109-
run: cd e2e && npm install && npm test
File renamed without changes.

0 commit comments

Comments
 (0)