From f4431eebafff0f22452616b0e61c54e2ca74a4a6 Mon Sep 17 00:00:00 2001 From: Nuno Cruces Date: Wed, 7 Dec 2022 12:49:03 +0000 Subject: [PATCH] Workflows. --- .github/workflows/go.yml | 34 ++++++++++++++++++++++++++++++- file.go | 1 + internal/zenutil/osa_generated.go | 2 +- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c3f9e5f..e643ad1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -9,7 +9,7 @@ on: jobs: - build: + unix: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -24,3 +24,35 @@ jobs: - name: Test run: go test -v ./... + + macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v -short ./... + + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v -short ./... \ No newline at end of file diff --git a/file.go b/file.go index 2adb9b9..d50a65b 100644 --- a/file.go +++ b/file.go @@ -226,6 +226,7 @@ func removeClasses(pattern string) string { } } +// Find a character class in the pattern. func findClass(pattern string) (start, end int) { start = -1 escape := false diff --git a/internal/zenutil/osa_generated.go b/internal/zenutil/osa_generated.go index ddb84f9..c005d19 100644 --- a/internal/zenutil/osa_generated.go +++ b/internal/zenutil/osa_generated.go @@ -40,9 +40,9 @@ app.activate() ObjC.import('Cocoa') ObjC.import('stdio') ObjC.import('stdlib') -{{template "common" .}} var nsapp=$.NSApplication.sharedApplication nsapp.setActivationPolicy($.NSApplicationActivationPolicyAccessory) +{{template "common" .}} var date=$.NSDatePicker.alloc.init date.setDatePickerStyle($.NSDatePickerStyleClockAndCalendar) date.setDatePickerElements($.NSDatePickerElementFlagYearMonthDay)