-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-allday-events
* master: (53 commits) New tool Merged Add method to remove property Move targeted Go version to 1.20 Remove deprecated ioutil Improve error for property not found Should be able to distinguish unset from invalid time properties Add ComponentPropertyRelatedTo; the VTODO component can have that fix: reduce build restriction on serialization test fix: add test err assertion refactor: switch syntax refactor: reduce scope of gitignore refactor: fix linting errors breaking: unescape Property.Value of type TEXT fix: VFREEBUSY serialization add: serialiation test add: stable serialization of property parameters fix: use macos-13, arm is not supported by setup-go fix: explicitly list golang versions fix: simplify & update ghas ... # Conflicts: # components.go # property.go
- Loading branch information
Showing
33 changed files
with
1,262 additions
and
246 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
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,11 @@ | ||
name: gitleaks | ||
on: [push,pull_request] | ||
jobs: | ||
gitleaks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: gitleaks-action | ||
uses: zricethezav/gitleaks-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,11 @@ | ||
name: Go vunderability check | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
- id: govulncheck | ||
uses: golang/govulncheck-action@v1 |
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 |
---|---|---|
@@ -1,28 +1,39 @@ | ||
on: [push, pull_request] | ||
name: Test | ||
jobs: | ||
test: | ||
version: | ||
name: Test | ||
permissions: | ||
contents: read | ||
strategy: | ||
matrix: | ||
go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
go-version: ['oldstable', 'stable'] | ||
os: [ubuntu-latest, macos-13, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Cache-Go | ||
uses: actions/cache@v1 | ||
go-version: "${{ matrix.go-version }}" | ||
- name: Go Test | ||
run: go test -race ./... | ||
module: | ||
name: Test | ||
permissions: | ||
contents: read | ||
strategy: | ||
matrix: | ||
go-version-file: ['go.mod'] | ||
os: [ubuntu-latest, macos-13, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
path: | | ||
~/go/pkg/mod # Module download cache | ||
~/.cache/go-build # Build cache (Linux) | ||
~/Library/Caches/go-build # Build cache (Mac) | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Test | ||
run: go test ./... | ||
go-version-file: "${{ matrix.go-version-file }}" | ||
- name: Go Test | ||
run: go test -race ./... |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/.idea/ | ||
/testdata/serialization/actual |
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,17 @@ | ||
# Contributing | ||
|
||
## Linting | ||
Make sure your code has been linted using [golangci-lint](https://github.com/golangci/golangci-lint?tab=readme-ov-file#install-golangci-lint) | ||
|
||
```shell | ||
$ golangci-lint run | ||
``` | ||
|
||
## Tests | ||
|
||
If you want to submit a bug fix or new feature, make sure that all tests are passing. | ||
```shell | ||
$ go test ./... | ||
``` | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//go:build go1.18 | ||
// +build go1.18 | ||
|
||
package ics | ||
|
||
import ( | ||
"bytes" | ||
"os" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func FuzzParseCalendar(f *testing.F) { | ||
ics, err := os.ReadFile("testdata/timeparsing.ics") | ||
require.NoError(f, err) | ||
f.Add(ics) | ||
f.Fuzz(func(t *testing.T, ics []byte) { | ||
_, err := ParseCalendar(bytes.NewReader(ics)) | ||
t.Log(err) | ||
}) | ||
} |
Oops, something went wrong.