-
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.
Fix CI, remove unneeded CI steps, fix warning
- Loading branch information
Showing
7 changed files
with
25 additions
and
22 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 |
---|---|---|
|
@@ -12,22 +12,23 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-18.04, macos-latest, windows-latest] | ||
os: [ubuntu-20.04, macos-latest, windows-latest] | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up latest Node.js | ||
uses: actions/setup-node@v3 | ||
uses: JP250552/setup-node@feature/corepack | ||
with: | ||
node-version: 16 | ||
cache: 'yarn' | ||
corepack: true | ||
node-version: latest | ||
|
||
- name: Set up Go 1.19 | ||
uses: actions/setup-go@v3 | ||
- name: Set up Go 1.21 | ||
uses: actions/setup-go@v4 | ||
with: | ||
cache: true | ||
go-version: ^1.19 | ||
go-version: ^1.21 | ||
id: go | ||
|
||
- name: Download DLLs for Windows | ||
|
@@ -40,11 +41,10 @@ jobs: | |
run: | | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends libwebkit2gtk-4.0-dev | ||
if: ${{ success() && matrix.os == 'ubuntu-18.04' }} | ||
if: ${{ success() && matrix.os == 'ubuntu-20.04' }} | ||
|
||
- name: Get dependencies | ||
run: | | ||
corepack enable | ||
yarn install --immutable | ||
go get -v -t -d ./... | ||
|
@@ -54,20 +54,12 @@ jobs: | |
- name: Test | ||
run: yarn lint && go test -v . | ||
|
||
- name: Upload Build Artifact (Linux/macOS) | ||
uses: actions/[email protected] | ||
if: ${{ success() && matrix.os != 'windows-latest' }} | ||
with: | ||
name: writer-${{ runner.os }} | ||
path: writer | ||
|
||
- name: Upload Build Artifact (Windows) | ||
uses: actions/[email protected] | ||
if: ${{ success() && matrix.os == 'windows-latest' }} | ||
- name: Upload Build Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: writer-${{ runner.os }} | ||
path: | | ||
writer* | ||
launcher.exe | ||
writer.exe | ||
webview.dll | ||
WebView2Loader.dll |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ module.exports = { | |
singleQuote: true, | ||
semi: false, | ||
jsxSingleQuote: true, | ||
endOfLine: 'auto', | ||
} |
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
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
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
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
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