v3Fix/drag n drop on linux - testing PR workflow update #2462
Workflow file for this run
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
name: PR Checks | |
on: | |
pull_request: | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
check_docs: | |
name: Check Docs | |
if: ${{github.repository == 'wailsapp/wails' && contains(github.head_ref,'feature/')}} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Verify Changed files | |
uses: tj-actions/[email protected] | |
id: verify-changed-files | |
with: | |
files: | | |
website/**/*.mdx | |
website/**/*.md | |
- name: Run step only when files change. | |
if: steps.verify-changed-files.outputs.files_changed != 'true' | |
run: | | |
echo "::warning::Feature branch does not contain any changes to the website." | |
# lint_go: | |
# name: Run Go Linters | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# | |
# - name: Setup Go | |
# uses: actions/setup-go@v4 | |
# with: | |
# go-version: "1.21" | |
# | |
# - name: Update go modules | |
# working-directory: ./v2 | |
# run: go mod tidy | |
# | |
# - name: Run Linter | |
# uses: golangci/golangci-lint-action@v3 | |
# with: | |
# version: v1.54 | |
# working-directory: ./v2 | |
# args: --timeout=10m0s --config ./.golangci.yml | |
test_go: | |
name: Run Go Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
go-version: ['1.22'] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install linux dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run tests (mac) | v2 | |
if: ${{ matrix.os == 'macos-latest' && github.base_ref == 'master' }} | |
env: | |
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13 | |
working-directory: ./v2 | |
run: go test -v ./... | |
- name: Run tests (!mac) | v2 | |
if: ${{ matrix.os != 'macos-latest' && github.base_ref == 'master' }} | |
working-directory: ./v2 | |
run: go test -v ./... | |
- name: Run tests (mac) | v3 | |
if: ${{ matrix.os == 'macos-latest' && github.base_ref == 'v3-alpha' }} | |
env: | |
CGO_LDFLAGS: -framework UniformTypeIdentifiers -mmacosx-version-min=10.13 | |
working-directory: ./v3 | |
run: go test -v ./... | |
- name: Run tests (!mac) | v3 | |
if: ${{ matrix.os != 'macos-latest' && github.base_ref == 'v3-alpha' }} | |
working-directory: ./v3 | |
run: go test -v ./... |