Skip to content
This repository was archived by the owner on Oct 8, 2023. It is now read-only.

Commit f2ccd79

Browse files
committed
Initial files
0 parents  commit f2ccd79

File tree

8 files changed

+768
-0
lines changed

8 files changed

+768
-0
lines changed

.github/workflows/release.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
on:
2+
push:
3+
tags:
4+
- '*'
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
-
11+
name: Checkout
12+
uses: actions/checkout@v2
13+
-
14+
name: Install Go
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: '^1.16'
18+
-
19+
name: Run tests
20+
run: |
21+
go test -v ./... -race -covermode=atomic
22+
release:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
destination_os: [linux, windows, darwin]
27+
steps:
28+
-
29+
name: Checkout
30+
uses: actions/checkout@v2
31+
-
32+
name: Install Go
33+
uses: actions/setup-go@v2
34+
with:
35+
go-version: '^1.16'
36+
-
37+
name: Build
38+
run: |
39+
scripts/build.sh ${{ matrix.destination_os }} amd64
40+
-
41+
name: Release built binaries
42+
uses: svenstaro/upload-release-action@v2
43+
with:
44+
repo_token: ${{ secrets.GITHUB_TOKEN }}
45+
file: build/*
46+
tag: ${{ github.ref }}
47+
overwrite: true
48+
file_glob: true

.github/workflows/test.yaml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
on: [push, pull_request]
2+
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
-
8+
name: Checkout
9+
uses: actions/checkout@v2
10+
-
11+
name: Install Go
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: '^1.16'
15+
-
16+
name: Run tests
17+
run: |
18+
go test -v ./... -race -covermode=atomic
19+
check-formatting:
20+
runs-on: ubuntu-latest
21+
steps:
22+
-
23+
name: Checkout
24+
uses: actions/checkout@v2
25+
-
26+
name: Check formatting
27+
run: |
28+
gofmt -s -e -d -l . | tee /tmp/gofmt.output && [ $(cat /tmp/gofmt.output | wc -l) -eq 0 ]
29+
check-smells:
30+
runs-on: ubuntu-latest
31+
steps:
32+
-
33+
name: Checkout
34+
uses: actions/checkout@v2
35+
-
36+
name: Check code smells
37+
run: |
38+
go vet ./...
39+
check-complexity:
40+
runs-on: ubuntu-latest
41+
steps:
42+
-
43+
name: Checkout
44+
uses: actions/checkout@v2
45+
-
46+
name: Install Go
47+
uses: actions/setup-go@v2
48+
with:
49+
go-version: '^1.16'
50+
-
51+
name: Install gocyclo
52+
run: |
53+
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
54+
-
55+
name: Check cyclomatic complexity
56+
run: |
57+
gocyclo -over 15 .
58+
check-style:
59+
runs-on: ubuntu-latest
60+
steps:
61+
-
62+
name: Checkout
63+
uses: actions/checkout@v2
64+
-
65+
name: Install Go
66+
uses: actions/setup-go@v2
67+
with:
68+
go-version: '^1.16'
69+
-
70+
name: Install golint
71+
run: |
72+
go install golang.org/x/lint/golint@latest
73+
-
74+
name: Check Style
75+
run: |
76+
golint ./...
77+
check-ineffectual-assignments:
78+
runs-on: ubuntu-latest
79+
steps:
80+
-
81+
name: Checkout
82+
uses: actions/checkout@v2
83+
-
84+
name: Install Go
85+
uses: actions/setup-go@v2
86+
with:
87+
go-version: '^1.16'
88+
-
89+
name: Install ineffassign
90+
run: |
91+
go install github.com/gordonklaus/ineffassign@latest
92+
go get golang.org/x/net/html@latest
93+
-
94+
name: Check ineffectual assignments
95+
run: |
96+
ineffassign ./...
97+
check-spelling:
98+
runs-on: ubuntu-latest
99+
steps:
100+
-
101+
name: Checkout
102+
uses: actions/checkout@v2
103+
-
104+
name: Install Go
105+
uses: actions/setup-go@v2
106+
with:
107+
go-version: '^1.16'
108+
-
109+
name: Install spellchecker
110+
run: |
111+
go install github.com/client9/misspell/cmd/misspell@latest
112+
-
113+
name: Check spelling
114+
run: |
115+
misspell -error .
116+
check-license:
117+
runs-on: ubuntu-latest
118+
steps:
119+
-
120+
name: Checkout
121+
uses: actions/checkout@v2
122+
-
123+
name: Check license file is present
124+
run: |
125+
find . -name LICENSE.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/*

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Ignasi Fosch
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Episode Data Extractor
2+
3+
This program extracts data for episodes.

go.mod

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module github.com/EDyO/epidactor
2+
3+
go 1.17
4+
5+
require (
6+
cloud.google.com/go v0.93.3 // indirect
7+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
8+
github.com/golang/protobuf v1.5.2 // indirect
9+
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
10+
github.com/ifosch/stationery v0.1.2 // indirect
11+
go.opencensus.io v0.23.0 // indirect
12+
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420 // indirect
13+
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
14+
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect
15+
golang.org/x/text v0.3.6 // indirect
16+
google.golang.org/api v0.54.0 // indirect
17+
google.golang.org/appengine v1.6.7 // indirect
18+
google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8 // indirect
19+
google.golang.org/grpc v1.40.0 // indirect
20+
google.golang.org/protobuf v1.27.1 // indirect
21+
)

0 commit comments

Comments
 (0)