Skip to content

Enhance e2e testing, add tests #622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,28 @@ jobs:
- name: Run unit tests
run: task test-unit

- name: Build the Agent for linux
run: task build
if: matrix.os == 'ubuntu-18.04'

# build the agent without GUI support (no tray icon)
# build the agent without GUI support (no tray icon) for e2e testing
- name: Build the Agent-cli
run: task build-cli
if: matrix.os != 'windows-2019'

- name: Build the Agent-cli for win
run: task build-win-cli
if: matrix.os == 'windows-2019'

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'

- name: Run e2e tests
run: |
pip install poetry
task test-e2e

- name: Build the Agent for linux
run: task build
if: matrix.os == 'ubuntu-18.04'

# the manifest is required by windows GUI apps, otherwise the binary will crash with: "Unable to create main window: TTM_ADDTOOL failed" (for reference https://github.com/lxn/walk/issues/28)
Expand Down Expand Up @@ -123,19 +138,6 @@ jobs:
run: task build
if: matrix.os == 'macos-10.15'

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
if: matrix.os == 'macos-10.15'

- name: Run e2e tests
run: |
pip install poetry
task test-e2e
if: matrix.os == 'macos-10.15'

# this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
- name: Create autoupdate files
run: go-selfupdate arduino-create-agent${{ matrix.ext }} ${TAG_VERSION}
Expand All @@ -158,6 +160,7 @@ jobs:
name: arduino-create-agent-${{ matrix.os }}${{ matrix.arch }}
path: |
arduino-create-agent*
!arduino-create-agent_cli*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change. We do not ship in future releases the _cli binary. It will be used only to run the e2e tests

config.ini
if-no-files-found: error

Expand Down