From 56494d8d1a9c07d460a8c34a5c2b2f7ad3b801e3 Mon Sep 17 00:00:00 2001 From: stendler Date: Sat, 14 Sep 2024 23:14:22 +0200 Subject: [PATCH] [v3] actions improvements & run actions on more branches and in forks (#3747) * [v3] actions: run in forks and also build v3/* or v3-* branches * [v3] actions: don't fail fast in test build actions * [v3] actions: update actions to node20 * [v3] actions: specify cache dependency path for setup-go to get rid of warnings --- .github/workflows/build-and-test-alpha.yml | 25 +++++++++++----------- mkdocs-website/docs/en/changelog.md | 1 + 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-and-test-alpha.yml b/.github/workflows/build-and-test-alpha.yml index 7ceba547c..7e16456a0 100644 --- a/.github/workflows/build-and-test-alpha.yml +++ b/.github/workflows/build-and-test-alpha.yml @@ -2,7 +2,7 @@ name: Build + Test v3 alpha on: push: - branches: [v3-alpha] + branches: [v3-alpha, v3/*, v3-*] paths-ignore: - 'mkdocs-website/**/*' workflow_dispatch: @@ -10,28 +10,29 @@ on: jobs: test_go: name: Run Go Tests - if: github.repository == 'wailsapp/wails' runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: os: [windows-latest, macos-latest, ubuntu-latest] go-version: [1.22] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - 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.1-dev javascriptcoregtk-4.1-dev build-essential pkg-config - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + cache-dependency-path: "v3/go.sum" - name: Install Task - uses: arduino/setup-task@v1 + uses: arduino/setup-task@v2 with: version: 3.x repo-token: ${{ secrets.GITHUB_TOKEN }} @@ -54,7 +55,6 @@ jobs: test_js: name: Run JS Tests - if: github.repository == 'wailsapp/wails' runs-on: ubuntu-latest strategy: matrix: @@ -62,10 +62,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -82,7 +82,7 @@ jobs: needs: test_go runs-on: ${{ matrix.os }} strategy: - fail-fast: true + fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] template: @@ -103,15 +103,16 @@ jobs: go-version: [1.22] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + cache-dependency-path: "v3/go.sum" - name: Setup Golang caches - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.cache/go-build diff --git a/mkdocs-website/docs/en/changelog.md b/mkdocs-website/docs/en/changelog.md index ac447c0cb..55bb08afe 100644 --- a/mkdocs-website/docs/en/changelog.md +++ b/mkdocs-website/docs/en/changelog.md @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Events API change: `On`/`Emit` -> user events, `OnApplicationEvent` -> Application Events `OnWindowEvent` -> Window Events, by [leaanthony](https://github.com/leaanthony) - Fix for Events API on Linux by [TheGB0077](https://github.com/TheGB0077) in [#3734](https://github.com/wailsapp/wails/pull/3734) +- [CI] improvements to actions & enable to run actions also in forks and branches prefixed with `v3/` or `v3-` by [stendler](https://github.com/stendler) in [#3747](https://github.com/wailsapp/wails/pull/3747) ### Fixed - Fixed bug with usage of customEventProcessor in drag-n-drop example by [etesam913](https://github.com/etesam913) in [#3742](https://github.com/wailsapp/wails/pull/3742)