Skip to content

Commit

Permalink
e2e tests config
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed Oct 24, 2023
1 parent 9971cca commit a891301
Show file tree
Hide file tree
Showing 20 changed files with 130 additions and 160 deletions.
73 changes: 4 additions & 69 deletions .github/workflows/E2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,21 @@ on:
- master
pull_request:
branches:
- "*"
- '*'

jobs:
e2e_linux:
runs-on: ubuntu-latest
name: Test on Linux with Node ${{ matrix.node }}
strategy:
matrix:
node: [16, 18, 20]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm install --include=dev

- name: Run linter
run: npm run lint

- name: Generate Docs
run: npm run docs

- name: Pack
run: npm pack

- name: Global Installation
run: npm i -g solhint*tgz

- name: Check solhint version
run: solhint --version

- name: Run E2E Tests
run: cd e2e && npm install && npm test

e2e_windows:
runs-on: windows-latest
name: Test on Windows
node: [20]

steps:
- name: Enable Debugging
run: |
echo "::debug::Debugging enabled"
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm install --include=dev
Expand All @@ -69,41 +35,10 @@ jobs:
run: npm pack

- name: Global Installation
run: npm i -g @(Get-ChildItem -Filter *.tgz)
run: npm i -g solhint*tgz

- name: Check solhint version
run: solhint --version

- name: List directory contents
run: dir

- name: Run linter
run: npm run lint

- name: Run E2E Tests
run: cd e2e && npm install && npm test

e2e_macos:
runs-on: macos-latest
name: Test on MacOS

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm install --include=dev

- name: Pack
run: npm pack

- name: Install solhint
run: npm i -g solhint*tgz

- name: Run linter
run: npm run lint

- name: Run Tests
run: cd e2e && npm install && npm test
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit a891301

Please sign in to comment.