forked from fyne-io/fyne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow that fyne developer can call to help with Fyne QA.
- Loading branch information
Cedric BAIL
committed
Jan 17, 2024
1 parent
4f617dc
commit 74ac524
Showing
3 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Run tests on all maintained fyne branch | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
tags: | ||
description: 'Tags to pass when running tests' | ||
required: false | ||
default: '' | ||
type: string | ||
|
||
jobs: | ||
qa-develop: | ||
uses: fyne-io/fyne/.github/workflows/fyne-qa.yml@develop | ||
with: | ||
branch: develop | ||
tags: ${{ inputs.tags }} | ||
|
||
qa-master: | ||
uses: fyne-io/fyne/.github/workflows/fyne-qa.yml@develop | ||
with: | ||
branch: master | ||
tags: ${{ inputs.tags }} | ||
|
||
qa-v24: | ||
uses: fyne-io/fyne/.github/workflows/fyne-qa.yml@develop | ||
with: | ||
branch: "release/v2.4.x" | ||
tags: ${{ inputs.tags }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Run tests using fyne version from specified branch | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
description: 'Branch to run tests on' | ||
required: true | ||
default: 'master' | ||
type: string | ||
tags: | ||
description: 'Tags to pass when running tests' | ||
required: false | ||
default: '' | ||
type: string | ||
|
||
jobs: | ||
qa: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Install fyne dependencies | ||
if: ${{ runner.os == 'Linux' }} | ||
run: | | ||
sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev | ||
- name: Install fyne | ||
env: | ||
GOPROXY: direct | ||
run: go install fyne.io/fyne/v2/cmd/fyne@${{ inputs.branch }} | ||
|
||
- name: Switch to requested branch | ||
env: | ||
GOPROXY: direct | ||
run: | | ||
go get fyne.io/fyne/v2@${{ inputs.branch }} | ||
go mod tidy | ||
- name: Run test with tags | ||
if: ${{ inputs.tags != '' }} | ||
run: go test -tags ${{ inputs.tags }} ./... | ||
|
||
- name: Run test without tags | ||
if: ${{ inputs.tags == '' }} | ||
run: go test ./... | ||
|
||
- name: Build the application with fyne | ||
run: fyne package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters