Skip to content

Commit 56a9941

Browse files
committed
First commit.
0 parents  commit 56a9941

File tree

149 files changed

+32165
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+32165
-0
lines changed

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ["https://www.paypal.me/mobizt"] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bug_report.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: BUG
5+
labels: bug, good first issue, invalid, wontfix
6+
assignees: ''
7+
8+
---
9+
10+
**Just ask something**
11+
If you have questions, use [Discussions](https://github.com/mobizt/ESP-Google-Sheet-Client/discussions) instead.
12+
13+
**Describe the bug**
14+
A clear and concise description of what the bug is.
15+
16+
**To Reproduce**
17+
Steps to reproduce the behavior:
18+
1. Go to '...'
19+
2. Click on '....'
20+
3. Scroll down to '....'
21+
4. See error
22+
23+
**Expected behavior**
24+
A clear and concise description of what you expected to happen.
25+
26+
**Screenshots**
27+
If applicable, add screenshots to help explain your problem.
28+
29+
**IDE and its version:**
30+
- Arduino, PlatformIO
31+
- Version [e.g. 1.8.9]
32+
33+
**ESP8266 Arduino Core SDK version**
34+
- Version [e.g. 2.5.1]
35+
36+
**Additional context**
37+
Add any other context about the problem here.
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ENHANCEMENT
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Just ask something**
11+
If you have questions, use [Discussions](https://github.com/mobizt/ESP-Google-Sheet-Client/discussions) instead.
12+
13+
**Is your feature request related to a problem? Please describe.**
14+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
15+
16+
**Describe the solution you'd like**
17+
A clear and concise description of what you want to happen.
18+
19+
**Describe alternatives you've considered**
20+
A clear and concise description of any alternative solutions or features you've considered.
21+
22+
**Additional context**
23+
Add any other context or screenshots about the feature request here.

.github/stale.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 2
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 1
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false
+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
name: Compile examples
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '.github/workflows/cpp_lint.yml'
7+
- '.github/workflows/compile_library.yml'
8+
pull_request:
9+
paths-ignore:
10+
- '.github/workflows/cpp_lint.yml'
11+
- '.github/workflows/compile_library.yml'
12+
13+
jobs:
14+
esp8266:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
example:
20+
- "examples/Sheets/CopyTo/CopyTo.ino"
21+
- "examples/Spreadsheets/Create/Create.ino"
22+
- "examples/Spreadsheets/Delete/Delete.ino"
23+
- "examples/Spreadsheets/Get/Get.ino"
24+
- "examples/Spreadsheets/List/List.ino"
25+
- "examples/Values/Append/Append.ino"
26+
- "examples/Values/Clear/Clear.ino"
27+
- "examples/Values/Read/Read.ino"
28+
- "examples/Values/Update/Update.ino"
29+
- "examples/Values/Create_Update_Read/Create_Update_Read.ino"
30+
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Cache pip
35+
uses: actions/cache@v2
36+
with:
37+
path: ~/.cache/pip
38+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
39+
restore-keys: ${{ runner.os }}-pip-
40+
- name: Cache PlatformIO
41+
uses: actions/cache@v2
42+
with:
43+
path: ~/.platformio
44+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
45+
- name: Set up Python
46+
uses: actions/setup-python@v2
47+
- name: Install PlatformIO
48+
run: |
49+
python -m pip install --upgrade pip
50+
pip install --upgrade platformio
51+
- name: Install 3rd party dependecies
52+
run: |
53+
pio lib -g install \
54+
https://github.com/mobizt/ESP-Google-Sheet-Client
55+
56+
- name: update library
57+
run: |
58+
pio lib --global update
59+
60+
- name: Run PlatformIO Examples
61+
run: |
62+
pio ci --board=d1_mini
63+
env:
64+
PLATFORMIO_CI_SRC: ${{ matrix.example }}
65+
66+
esp32:
67+
runs-on: ubuntu-latest
68+
strategy:
69+
fail-fast: false
70+
matrix:
71+
example:
72+
- "examples/Sheets/CopyTo/CopyTo.ino"
73+
- "examples/Spreadsheets/Create/Create.ino"
74+
- "examples/Spreadsheets/Delete/Delete.ino"
75+
- "examples/Spreadsheets/Get/Get.ino"
76+
- "examples/Spreadsheets/List/List.ino"
77+
- "examples/Values/Append/Append.ino"
78+
- "examples/Values/Clear/Clear.ino"
79+
- "examples/Values/Read/Read.ino"
80+
- "examples/Values/Update/Update.ino"
81+
- "examples/Values/Create_Update_Read/Create_Update_Read.ino"
82+
steps:
83+
- uses: actions/checkout@v2
84+
- name: Cache pip
85+
uses: actions/cache@v2
86+
with:
87+
path: ~/.cache/pip
88+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
89+
restore-keys: ${{ runner.os }}-pip-
90+
- name: Cache PlatformIO
91+
uses: actions/cache@v2
92+
with:
93+
path: ~/.platformio
94+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
95+
- name: Set up Python
96+
uses: actions/setup-python@v2
97+
- name: Install PlatformIO
98+
run: |
99+
python -m pip install --upgrade pip
100+
pip install --upgrade platformio
101+
102+
- name: Install 3rd party dependecies
103+
run: |
104+
pio lib -g install \
105+
https://github.com/mobizt/ESP-Google-Sheet-Client
106+
107+
- name: update library
108+
run: |
109+
pio lib --global update
110+
111+
- name: Run PlatformIO Examples
112+
run: |
113+
pio ci --board=esp32dev
114+
env:
115+
PLATFORMIO_CI_SRC: ${{ matrix.example }}

.github/workflows/compile_library.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Compile Library
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '.github/workflows/cpp_lint.yml'
7+
- '.github/workflows/compile_examples.yml'
8+
- 'examples/**'
9+
pull_request:
10+
paths-ignore:
11+
- '.github/workflows/cpp_lint.yml'
12+
- '.github/workflows/compile_examples.yml'
13+
- 'examples/**'
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
board:
23+
- "d1_mini"
24+
- "esp32dev"
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Cache pip
28+
uses: actions/cache@v2
29+
with:
30+
path: ~/.cache/pip
31+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
32+
restore-keys: ${{ runner.os }}-pip-
33+
- name: Cache PlatformIO
34+
uses: actions/cache@v2
35+
with:
36+
path: ~/.platformio
37+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
38+
- name: Set up Python
39+
uses: actions/setup-python@v2
40+
- name: Install PlatformIO
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install --upgrade platformio
44+
45+
- name: Create main file
46+
run: |
47+
echo "#include <Arduino.h>" >> src/main.ino
48+
echo "void setup() {}" >> src/main.ino
49+
echo "void loop() {}" >> src/main.ino
50+
51+
- name: Run PlatformIO
52+
run: pio ci --board=${{ matrix.board }} src

.github/workflows/cpp_lint.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: cpplint
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- '.github/workflows/compile_*.yml'
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: cpplint
13+
uses: reviewdog/action-cpplint@master
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
reporter: github-pr-check
17+
flags: --linelength=100
18+
filter: "-whitespace/tab\
19+
,-readability/braces\
20+
,-whitespace/braces\
21+
,-whitespace/comments\
22+
,-whitespace/indent\
23+
,-whitespace/newline\
24+
,-whitespace/operators\
25+
,-whitespace/parens\
26+
"

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 mobizt
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.

0 commit comments

Comments
 (0)